Content

Retrieve a file

Retrieve content from the specified environment and path in your HubSpot CMS. This endpoint allows you to access specific content files based on the environment and path parameters, which can be useful for managing and displaying content in different environments.

get/cms/source-code/2026-03/{environment}/content/{path}

Path parameters

environmentstring required

The environment from which to retrieve the content. This identifies the specific context or stage of the content, such as 'staging' or 'production'.

pathstring required

The path to the content file within the specified environment. This should be a valid string that represents the location of the content file.

Response

An error occurred.

Changes