# Download a data export

`GET /api/v1/exports/{exportId}/download`

The file of a ready export, for the person who asked for it.

Sign-in: a dashboard session only. API tokens and OAuth sign-ins get `403 token.not_allowed`.

Section: Sign-in and account. Operation id in openapi.json: `download_export`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `exportId` | path | yes | string (uuid) | The export's id. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

The export file.

`application/json`: object

### 400

Bad Request.

- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.not_allowed`: this operation needs a signed-in session; tokens cannot call it

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 409

Conflict.

- `export.not_ready`: the export is still being built or could not be built: nothing to download yet

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
