Basic
Download a file
Changed onDownloads the byte contents of the file at the specified path in the specified environment.
get/cms/source-code/2026-09/{environment}/content/{path}
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/cms/source-code/2026-09/{environment}/content/{path}
- AuthOAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: content
Path parameters
environmentstring required
The environment from which to retrieve the content. It specifies the context or stage of the source code.
pathstring required
The path to the specific content file within the environment. It identifies the location of the file to be retrieved.
Response
An error occurred.
Example response
{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}Changes
- info
the endpoint scheme security
private_appswas removed from the API
- info