Passer au contenu principal
GET
/
cms
/
v3
/
source-code
/
{environment}
/
content
/
{path}
Télécharger un fichier
curl --request GET \
  --url https://api.hubapi.com/cms/v3/source-code/{environment}/content/{path} \
  --header 'Authorization: Bearer <token>'
"<string>"

Produits pris en charge

Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing Hub -Gratuit
Sales HubSales Hub -Gratuit
Service HubService Hub -Gratuit
Content HubContent Hub -Starter

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

environment
string
requis

L'environnement du fichier (« brouillon » ou « publié »).

path
string
requis

L'emplacement du fichier dans le système de fichiers.

Réponse

File content retrieved successfully

The response is of type file.

Last modified on December 8, 2025