How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HubSpot Files API

HubSpot Files — 20 operation(s) from HubSpot's published OpenAPI.

HubSpot Files API is one of 144 APIs that HubSpot publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 692 JSON Schema definitions.

Tagged areas include Files. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, code examples, and 692 JSON Schemas.

This API exposes 20 operations across 14 paths, organized into 2 resource areas, and defines 21 schemas. It is described by OpenAPI 3.0.1, at version 2026-03.

Requests are made against a single base URL, https://api.hubapi.com.

20 operations 14 paths 21 schemas 4 DELETE9 GET2 PATCH4 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2026-03
Base URL
https://api.hubapi.com
Authentication
API Key, OAuth 2.0, API Key, API Key
Resource Areas
2

Authentication & Security 4

HubSpot Files API declares 4 security schemes for authenticating requests. An API key is passed in the query as hapikey (developer_hapikey). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 2 scopes. An API key is passed in the header as private-app (private_apps). An API key is passed in the header as private-app-legacy (private_apps_legacy).

Paths & Operations 20

Across 14 paths, the API surfaces 20 operations — 4 DELETE, 9 GET, 2 PATCH, 4 POST, 1 PUT. They span 2 resource areas: Files, Folders. Each is listed below with its method, path, parameters, and response codes.

Files 12
POST
/files/2026-03/files
Upload file
post-/files/2026-03/files_upload body → 201default
POST
/files/2026-03/files/import-from-url/async
Import file from URL
post-/files/2026-03/files/import-from-url/async_importFromUrl body → 202default
GET
/files/2026-03/files/import-from-url/async/tasks/{taskId}/status
Check import status
get-/files/2026-03/files/import-from-url/async/tasks/{taskId}/status_checkImport 1 param → 200default
GET
/files/2026-03/files/search
Search files
get-/files/2026-03/files/search_doSearch 36 params → 200default
GET
/files/2026-03/files/stat/{path}
Retrieve file by path
get-/files/2026-03/files/stat/{path}_getMetadata 2 params → 200default
GET
/files/2026-03/files/{fileId}
Retrieve file by ID
get-/files/2026-03/files/{fileId}_getById 2 params → 200default
PUT
/files/2026-03/files/{fileId}
Replace file
put-/files/2026-03/files/{fileId}_replace 1 param body → 200default
DELETE
/files/2026-03/files/{fileId}
Delete file by ID
delete-/files/2026-03/files/{fileId}_archive 1 param → 204default
PATCH
/files/2026-03/files/{fileId}
Update file properties
patch-/files/2026-03/files/{fileId}_updateProperties 1 param body → 200default
DELETE
/files/2026-03/files/{fileId}/gdpr-delete
GDPR-delete file
delete-/files/2026-03/files/{fileId}/gdpr-delete_delete 1 param → 204default
GET
/files/2026-03/files/{fileId}/signed-url
Get signed URL to access private file
get-/files/2026-03/files/{fileId}/signed-url_getSignedUrl 4 params → 200default
POST
/files/2026-03/folders
Create folder
post-/files/2026-03/folders_create body → 201default
Folders 8
GET
/files/2026-03/folders/search
Search folders
get-/files/2026-03/folders/search_doSearch 17 params → 200default
POST
/files/2026-03/folders/update/async
Update folder properties
post-/files/2026-03/folders/update/async_updatePropertiesRecursively body → 202default
GET
/files/2026-03/folders/update/async/tasks/{taskId}/status
Check folder update status
get-/files/2026-03/folders/update/async/tasks/{taskId}/status_checkUpdateStatus 1 param → 200default
GET
/files/2026-03/folders/{folderId}
Retrieve folder by ID
get-/files/2026-03/folders/{folderId}_getById 2 params → 200default
DELETE
/files/2026-03/folders/{folderId}
Delete folder by ID
delete-/files/2026-03/folders/{folderId}_archive 1 param → 204default
PATCH
/files/2026-03/folders/{folderId}
Update folder properties by folder ID
patch-/files/2026-03/folders/{folderId}_updateProperties 1 param body → 200default
GET
/files/2026-03/folders/{folderPath}
Retrieve folder by path
get-/files/2026-03/folders/{folderPath}_getByPath 2 params → 200default
DELETE
/files/2026-03/folders/{folderPath}
Delete folder by path
delete-/files/2026-03/folders/{folderPath}_archiveByPath 1 param → 204default

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are File (21 properties), ImportFromUrlInput (10 properties), FileActionResponse (9 properties), FolderActionResponse (9 properties). Each schema is shown below with its type and property counts.

CollectionResponseFile
object
2 properties 1 required
CollectionResponseFolder
object
2 properties 1 required
Error
object
Represents an error response returned by the API when an operation fails. This component is used in various endpoints to provide detailed information about the…
7 properties 3 required
ErrorDetail
object
Represents detailed information about an error that occurred in the API. This component is used to provide additional context and specifics about errors, typic…
5 properties 1 required
File
object
21 properties 4 required
FileActionResponse
object
9 properties 4 required
FileStat
object
2 properties
FileUpdateInput
object
7 properties 1 required
Folder
object
8 properties 4 required
FolderActionResponse
object
9 properties 4 required
FolderInput
object
3 properties 1 required
FolderUpdateInput
object
2 properties
FolderUpdateInputWithId
object
3 properties 1 required
FolderUpdateTaskLocator
object
2 properties 1 required
ImportFromUrlInput
object
10 properties 4 required
ImportFromUrlTaskLocator
object
2 properties 1 required
NextPage
object
Specifies the paging information needed to retrieve the next set of results in a paginated API response
2 properties 1 required
Paging
object
2 properties
PreviousPage
object
specifies the paging information needed to retrieve the previous set of results in a paginated API response
2 properties 1 required
SignedUrl
object
8 properties 2 required
StandardError
object
Ye olde error
8 properties 6 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hubspot-files-files-api-openapi.yml Raw ↑

Other APIs HubSpot publishes across the network.

HubSpot URL Redirects API
HubSpot Pipelines API
HubSpot Products API
HubSpot Line Items API
HubSpot Quotes API
HubSpot CRM Properties API
HubSpot Owners API
HubSpot CRM Imports API
HubSpot Custom Objects API
HubSpot Marketing Events API
HubSpot Forms API
HubSpot Workflows API
Where this information came from

This is an independent, third-party profile of HubSpot Files API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.