# Start an export (https://notert.io/docs/api/reference/start-an-export)

`POST /api/v1/data-exports`

Starts an export of everything the workspace holds, every contact's email address included, as the Export dialog in the app does, as the token's holder or the person who connected the app, whose own export it is. Only an owner or admin may (FORBIDDEN otherwise), and the workspace's owners are told, with the token or app named. A person has one export preparing at a time: starting another while one is preparing answers that one. Read it with GET /data-exports/{id} until it is ready, which takes minutes for most workspaces and longer for one with many files.

Access: A token with exports:manage.

## Response 202

| 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 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `TOKEN_HELD_TO_BOARDS` | An export holds every board, so this token, held to some, can't export the workspace. Use a token that reaches every board. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `OTHER_EXPORT_PREPARING` | Another export of this holder's is still preparing, of one contact or the audit log. Try again once it is ready. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/data-exports \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 202

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