# HubSpot CMS Source Code API

> HubSpot CMS Source Code API on Apizie: 7 endpoints (Extract a zip file, Get extraction status, Download a file, Create or update a file, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/business:hubspot-cms-source-code/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `business:hubspot-cms-source-code`
- Category: Business
- Status: byok
- Source: https://developers.hubspot.com/docs/api/overview
- Page: https://apizie.tech/api/business/hubspot-cms-source-code
- OpenAPI: https://apizie.tech/api/business/hubspot-cms-source-code/openapi.json

Basepom for all HubSpot Projects

## Endpoints

### Extract a zip file
`POST https://apizie.tech/v1/business:hubspot-cms-source-code/post-cms-source-code-2026-09-extract-async-do-async` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | JSON request body |

### Get extraction status
`GET https://apizie.tech/v1/business:hubspot-cms-source-code/get-cms-source-code-2026-09-extract-async-tasks-task-id-stat` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| taskId | integer | yes | The unique identifier of the task whose status you want to retrieve. This is an integer value. |

### Download a file
`GET https://apizie.tech/v1/business:hubspot-cms-source-code/get-cms-source-code-2026-09-environment-content-path-downloa` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| environment | string | yes | The environment from which to retrieve the content. It specifies the context or stage of the source code. |
| path | string | yes | The path to the specific content file within the environment. It identifies the location of the file to be retrieved. |

### Create or update a file
`POST https://apizie.tech/v1/business:hubspot-cms-source-code/put-cms-source-code-2026-09-environment-content-path-create` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| environment | string | yes | The environment in which the content file resides, such as 'staging' or 'production'. |
| path | string | yes | The specific path to the content file within the environment. |
| body | object | no | Form fields as a JSON object |

### Delete a file
`POST https://apizie.tech/v1/business:hubspot-cms-source-code/delete-cms-source-code-2026-09-environment-content-path-arch` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| environment | string | yes | The environment from which the content file will be deleted. This identifies the specific context or workspace within your HubSpot account. |
| path | string | yes | The path of the content file to be deleted. This should be a valid string that specifies the location of the file within the environment. |

### Get the metadata for a file
`GET https://apizie.tech/v1/business:hubspot-cms-source-code/get-cms-source-code-2026-09-environment-metadata-path-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| environment | string | yes | The environment in which the file or folder is located, such as 'staging' or 'production'. |
| path | string | yes | The path to the specific file or folder for which metadata is being retrieved. |
| properties | string | no | A comma-separated list of specific properties to include in the response. |

### Validate the contents of a file
`POST https://apizie.tech/v1/business:hubspot-cms-source-code/post-cms-source-code-2026-09-environment-validate-path-do-va` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| environment | string | yes |  |
| path | string | yes | The specific path of the source code file to validate. It must be a valid string pattern. |
| body | object | no | Form fields as a JSON object |

## Example
```
curl "https://apizie.tech/v1/business:hubspot-cms-source-code/post-cms-source-code-2026-09-extract-async-do-async" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the HubSpot CMS Source Code API?
Create a free Apizie key, then send POST https://apizie.tech/v1/business:hubspot-cms-source-code/post-cms-source-code-2026-09-extract-async-do-async with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the HubSpot CMS Source Code API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. HubSpot CMS Source Code itself also needs your own key from hubapi.com.

### Can AI agents use the HubSpot CMS Source Code API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key business:hubspot-cms-source-code.

### What is the status of the HubSpot CMS Source Code API?
Needs your own provider key (bring your own key)
