Content
Retrieve file metadata
Retrieve metadata for a specific file or folder within a specified environment in the HubSpot CMS. This endpoint is useful for obtaining detailed information about content files, such as their creation and update timestamps, and other metadata attributes.
get/cms/source-code/2026-03/{environment}/metadata/{path}
Path parameters
environmentstring required
The environment in which the file or directory 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 metadata properties to include in the response.
Response
successful operation