# Export a customer's data

```http
POST https://trydimmi.com/api/v1/contacts/{contact}/exports
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `contacts:write`.

## Path parameters

- `contact` (string, required): Id of the contact (a customer or lead), starting with ctc_, such as ctc_01jx2m8k4t. Find it with GET /contacts.

## Body

- `include_notes` (boolean): true to add the team's internal notes, which stay out by default.

## Response 202 (Accepted)

- `data` (object, required)
  - `contact_id` (string, required): Id of the contact whose data is exported, starting with ctc_.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `expires_at` (string | null, required): When the export file stops being downloadable, a day after it became ready. Null until it is ready.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `include_notes` (boolean, required): True when the team's internal notes are part of the export.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `size_bytes` (integer | null, required): Size of the export file in bytes. Null until it is built.
  - `status` (string, required): Where the export stands: pending, running, ready, failed or expired.
  - `url` (string | null, required): The API path the ready export downloads from, such as /api/v1/contacts/ctc_.../exports/exp_.../download. Null unless status is ready.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request POST \
  --url 'https://trydimmi.com/api/v1/contacts/{contact}/exports' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "include_notes": true
}'
```

## Example response

```json
{
  "data": {
    "contact_id": "<string>",
    "created_at": "2026-11-01T09:30:00Z",
    "expires_at": "2026-11-01T09:30:00Z",
    "id": "<string>",
    "include_notes": true,
    "object": "<string>",
    "size_bytes": 123,
    "status": "<string>",
    "url": "<string>"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
