---
title: "Extract source code in a zip file"
method: POST
path: "/cms/source-code/2026-03/extract/async"
tags: ["Extract"]
---

# Extract source code in a zip file

`POST /cms/source-code/2026-03/extract/async`

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.

## Request body

- CmsSourceCodeFileExtractRequest
  - `path` string, required — The file system location where the zip file is to be extracted.

## Response `202`

accepted

- TaskLocator
  - `id` string, required — The unique identifier for the task.
  - `links` object — A collection of link names mapped to their corresponding URIs.

## Other responses

- `default` — An error occurred.

## Changes

- **2026-03-25** `62586336cea2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/cms/source-code/2026-03/extract/async/post.md)

---

[API](https://skmtc.dev/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.dev/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/revisions/62586336cea2/schema)
