---
title: "Download a finished export"
method: GET
path: "/exports/{id}/download"
tags: ["Exports"]
---

# Download a finished export

`GET /exports/{id}/download`

## Request

- Base URL: `https://codeatlas.com.br/api/v1`
- URL: `https://codeatlas.com.br/api/v1/exports/{id}/download`
- Auth: OAuth 2 (client credentials, token URL `https://codeatlas.com.br/oauth2/token`, scopes: `api:write`)

Returns the file with the content type of the chosen format (application/jsonl, text/csv or text/markdown). 409 while the job has not succeeded.

## Path parameters

- `id` string, required

## Response `200`

The export file.

## Other responses

- `401`: Missing, malformed, expired or wrong-audience Bearer token. WWW-Authenticate carries the resource metadata URL.
- `403`: The token lacks the api:write scope.
- `404`: The resource does not exist or is not visible to this client.
- `405`: The HTTP method is not supported.
- `409`: The resource is not in a state that allows this call, for example the export has not finished.
- `429`: Rate limit exceeded. Wait Retry-After seconds.
- `default`: Unexpected error. Same shape as every other error.

---

[API](https://skmtc.dev/codeatlas/apis/codeatlas-public-api.md) · [All operations](https://skmtc.dev/codeatlas/apis/codeatlas-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codeatlas/apis/codeatlas-public-api/revisions/fdb5ace63542?raw)
