Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HubSpot File Content API

Operations for downloading, creating, updating, and deleting source code files

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

This API exposes 652 JSON Schema definitions.

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

This API exposes 4 operations across 1 path, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 3.0.0.

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

4 operations 1 paths 4 schemas 1 DELETE1 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.0.0
Base URL
https://api.example.com
Authentication
OAuth 2.0
License
Resource Areas
1

Authentication & Security 1

HubSpot File Content API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 1 scope.

Paths & Operations 4

Across 1 path, the API surfaces 4 operations — 1 DELETE, 1 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

File Content 4

Operations for downloading, creating, updating, and deleting source code files

GET
/cms/v3/source-code/{environment}/content/{path}
Hubspot Download a Source Code File
downloadSourceCodeFile 2 params → 200default
PUT
/cms/v3/source-code/{environment}/content/{path}
Hubspot Create or Update a Source Code File
upsertSourceCodeFile 2 params body → 200default
POST
/cms/v3/source-code/{environment}/content/{path}deprecated
Hubspot Create a New Source Code File
createSourceCodeFile 2 params body → 200default
DELETE
/cms/v3/source-code/{environment}/content/{path}
Hubspot Delete a Source Code File
deleteSourceCodeFile 2 params → 204default

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are AssetFileMetadata (8 properties), Error (7 properties), ErrorDetail (5 properties), FileUploadRequest (1 property). Each schema is shown below with its type and property counts.

ErrorDetail
object
Detailed error information
5 properties 1 required
Error
object
Standard error response
7 properties 3 required
FileUploadRequest
object
Request body for file upload operations
1 property 1 required
AssetFileMetadata
object
Metadata for a file or folder in the CMS Developer File System
8 properties 5 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hubspot-file-content-api-openapi.yml Raw ↑

Other APIs HubSpot publishes across the network.

HubSpot Posts API
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