# Get an export (https://notert.io/docs/api/reference/get-an-export)

`GET /api/v1/data-exports/{id}`

An export the token's holder or the app's person started, with a link to download each part once it is ready. The links are signed anew on each read and last minutes. An export is kept a week after it is ready, then answers NOT_FOUND.

Access: A token with exports:manage.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The export's id, as starting it answered it. At most 64 characters. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The export's id, which stays the same. |
| `state` | string | Where it stands: preparing while its file is written, ready once it can be downloaded, failed when every attempt failed, and then another may be started. One of: `preparing`, `ready`, `failed`. |
| `createdAt` | date-time | When it was started. |
| `finishedAt` | date-time or null | When it became ready or failed, null while it is preparing. A ready export is kept a week from then. |
| `downloads` | object[] | Once it is ready, its file, or for a large workspace its parts in order, each a ZIP file. Empty until then. |
| `downloads.part` | integer | Which part of the export the link downloads, from 1. |
| `downloads.url` | string | Where to download the part with a plain GET, no token needed. The link works only for the person whose export it is, while they may still export the workspace, and resumes with a Range header. |
| `downloads.expiresAt` | date-time | When the link stops working, minutes from now. Read the export again for new links. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token or OAuth access token as a Bearer token. |
| 403 | `CONNECTION_NOT_ALLOWED` | The person who connected this app can't use it in the workspace now. |
| 403 | `FORBIDDEN` | The teammate who holds this API token's secret can't export the workspace. Only an owner or admin can: one of them should roll it in the workspace's settings. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't export the workspace. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `TOKEN_HELD_TO_BOARDS` | An export holds every board, so this token, held to some, can't download one. Use a token that reaches every board. |
| 404 | `NOT_FOUND` | Not Found. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl https://app.notert.io/api/v1/data-exports/3f8a2c1e-7b4d-4e9a-a6c2-5d1f8b3e7a90 \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "id": "3f8a2c1e-7b4d-4e9a-a6c2-5d1f8b3e7a90",
  "state": "preparing",
  "createdAt": "2026-12-04T09:41:07.512Z",
  "finishedAt": null,
  "downloads": []
}
```
