---
title: "Download a file from a project"
method: GET
path: "/api/v1/file/download/{ownerId}/{projectId}/{fileName}"
tags: ["Files"]
---

# Download a file from a project

`GET /api/v1/file/download/{ownerId}/{projectId}/{fileName}`

## Request

- Base URL: `https://davinci-app.com`
- URL: `https://davinci-app.com/api/v1/file/download/{ownerId}/{projectId}/{fileName}`
- Auth: HTTP bearer

Streams a file from the machine holding your project.

Send this to `dataPlane.url` with `Authorization: Bearer {dataPlane.token}`.
Prefer this over the control-plane `downloadProjectFile` for large files: the
bytes travel directly rather than through the API server, with a 30-minute
window rather than 15.

A file belonging to a different project is served only when your project has
an active include referencing it — the same rule the editor follows.

## Response `200`

File bytes.

## Other responses

- `401`: The grant is missing, unknown, expired, or revoked. These are one response so a rejected request cannot be used to learn which grants exist. Refresh the session to get a new grant, or create a new session if that also fails.
- `403`: The grant does not carry `documents:read`, or the file belongs to another project with no active include referencing it.
- `404`: No such file.
- `409`: The project moved to another machine. Error code is `PROJECT_MOVED`. Retry the request: the next one resolves to the machine holding it now, at the same URL.
- `429`: Request rate exceeded, either globally or for this key.
- `500`: Unexpected server error.

## Changes

- **2026-09-15** (v2) `67c8b8616dbb`: 6 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 `409`
  - …2 more
- **2026-09-15** (v2) `48948af37797`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/changes/api/v1/file/download/:ownerId/:projectId/:fileName/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)
