---
title: "Download a file"
method: GET
path: "/cms/source-code/2026-03/{environment}/content/{path}"
tags: ["Basic"]
---

# Download a file

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

Downloads the byte contents of the file at the specified path in the specified environment.

## Path parameters

- `environment` string, required
- `path` string, required

## Response `default`

An error occurred.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-08** `b0d8bc008db9` — 1 info
  - api operation id `get-/cms/source-code/2026-03/{environment}/content/{path}_download` removed and replaced with `get-/cms/source-code/2026-03/{environment}/content/{path}`
- **2026-03-30** `dc2fdad57f7f` — 2 info
  - api tag `Basic` added
  - api tag `Content` removed
- **2026-03-25** `62586336cea2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/cms/source-code/2026-03/:environment/content/:path/get.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/f9c7181056c5/schema)
