Basic
Get the metadata for a file
Changed onGets the metadata object for the file at the specified path in the specified environment.
get/cms/source-code/2026-09/{environment}/metadata/{path}
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/cms/source-code/2026-09/{environment}/metadata/{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 in which the file or folder is located, such as 'staging' or 'production'.
pathstring required
The path to the specific file or folder for which metadata is being retrieved.
Query parameters
propertiesstring
A comma-separated list of specific properties to include in the response.
Response
successful operation
Changes
- info
the endpoint scheme security
private_appswas removed from the API
- info