curl --request POST \
--url https://api.hubapi.com/cms/source-code/2026-03/extract/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'{
"id": "<string>",
"links": {}
}Initiate an asynchronous extraction of source code files in the HubSpot CMS. This endpoint is useful for handling large file extractions without blocking the client application. Upon acceptance, it returns a task locator that can be used to check the status of the extraction process.
curl --request POST \
--url https://api.hubapi.com/cms/source-code/2026-03/extract/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'{
"id": "<string>",
"links": {}
}Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
The file system location where the zip file is to be extracted.
Was this page helpful?