GET
/
cms
/
v3
/
source-code
/
{environment}
/
content
/
{path}
Download a file
curl --request GET \
  --url https://api.hubapi.com/cms/v3/source-code/{environment}/content/{path} \
  --header 'Authorization: Bearer <token>'
This response does not have an example.
Supported products
Requires one of the following products or higher.
Marketing HubMarketing HubFree
Sales HubSales HubFree
Service HubService HubFree
Content HubContent HubFree

Required Scopes

This API requires one of the following scopes:
  • content

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

environment
string
required

The environment of the file ("draft" or "published").

path
string
required

The file system location of the file.

Response

200
application/octet-stream

File content retrieved successfully

The response is of type file.