---
title: "Download an attached file"
method: GET
path: "/api/v2/projects/{projectId}/files/{fileId}/content"
tags: ["Projects"]
---

# Download an attached file

`GET /api/v2/projects/{projectId}/files/{fileId}/content`

## Request

- Base URL: `https://davinci-app.com`
- URL: `https://davinci-app.com/api/v2/projects/{projectId}/files/{fileId}/content`
- Auth: HTTP bearer

Streams the bytes of a referenced file. `fileId` may be a reference object id
or a stored filename.

An authenticated caller receives current working bytes when this exact branch
is already active on a Design Engine. This request never starts a project; if
no live instance is available it falls back to committed branch HEAD.
Anonymous access to a public project always reads committed branch HEAD and
never observes working state. Committed snapshots use the immutable
`assets.primary.sha256` blob, with a legacy files-prefix fallback for older
snapshots.

## Query parameters

- `branch` string

## Response `200`

File bytes.

## Other responses

- `401`: No credential was supplied, or the supplied credential is malformed, expired, or revoked. A credential that is present but unusable is never downgraded to an anonymous request.
- `403`: Authenticated but not authorized. Either the acting user lacks the required resource permission, the key's scope ceiling excludes it, or the endpoint rejects this credential type (`CREDENTIAL_NOT_PERMITTED`).
- `404`: File not found. Error code is `REFERENCED_FILE_NOT_FOUND`.
- `429`: Request rate exceeded, either globally or for this key.
- `500`: Unexpected server error.

## Changes

- **2026-09-15** (v2) `67c8b8616dbb`: 5 info
  - the `success` response property const value `false` was added for the status `401`
  - the `success` response property const value `false` was added for the status `403`
  - the `success` response property const value `false` was added for the status `404`
  - the `success` response property const value `false` was added for the status `429`
  - …1 more
- **2026-09-15** (v2) `48948af37797`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/changes/api/v2/projects/:projectId/files/:fileId/content/get.md)

---

[API](https://skmtc.dev/celedon-solutions/apis/davinci-public-api.md) - [All operations](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/revisions/279218ca2e8d?raw)
