# Download export

Returns the export file (text/csv or application/pdf) as an attachment. Requires export:read or export:create; only a ready export can be downloaded, within 24 hours of creation.

`GET /v1/exports/{id}/download`

Returns the export file (text/csv or application/pdf) as an attachment. Requires export:read or export:create; only a ready export can be downloaded, within 24 hours of creation.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | Export id (exp_...). |

## Responses

- **200**: Success.
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **404**: The resource does not exist or belongs to another organization.
- **409**: Conflicts with the current state, for example a reused Idempotency-Key or an illegal state change.

Example 200 response:

```json
{
  "csv": "string"
}
```
