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

# Download a file

`GET /cms/v3/source-code/{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 `200`

File content retrieved successfully

## Other responses

- `403` — Insufficient permissions to access the file
- `404` — File not found at the specified path
- `default` — An error occurred.

---

[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/6f56ac6a8fa3/schema)
