Skip to content
dimmiDocs

Reports and data

Export conversations, contacts or the whole workspace

POST/api/v1/data-exports

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the conversations:read ability

Body

application/json
formatstringrequired

Conversations: txt (readable transcripts, 1,000 at most), csv (50,000) or json (10,000). Contacts: csv (50,000) or json (10,000). Workspace: zip.

Available options:txtpdfcsvjsonzip

include_notesboolean

true to include the team's internal notes, only if you may moderate conversations.

kindstringrequired

conversations, contacts, or workspace for everything the workspace owns (owners only).

Available options:conversationscontactsconversation_factsworkspace

selectionobject
Show child attributes
conditionsstring

Contact exports only: the same conditions as the contact list takes, a JSON list written as text, at most 8000 characters, such as [{"field":"email","op":"contains","value":"@acme.com"}].

Maximum length: 8000

filterobject

Filters as an object of filter name to text value, the same names the matching list takes; for kind conversation_facts the report's from, to, inbox, team and so on. Such as {"status": "closed"}.

idsstring[] | null

The exact records to export, as a list of up to 10000 ids: conversation ids (conv_...) for conversations, contact ids (ctc_...) for contacts. When given, the filters are not used. Such as ["conv_01jx2m8k4t"].

Maximum items: 10000

qstring

Words to search for, so only the records that match are exported, such as refund.

view_idstring

Conversation exports only: the list to export, as the conversation list's view filter takes it, such as a saved view's id cvw_01jx2m8k4t (from GET /conversation-views) or all.

Response 202

Accepted
dataobjectrequired
Show child attributes
created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

errorstring | nullrequired

A sentence saying the export could not be built. Null unless status is failed.

expires_atstring | nullrequired

When the export file is removed and can no longer be downloaded. Null until the file is built.

Format: date-time

file_namestringrequired

The name of the export file, such as export.csv.

formatstringrequired

The file format: txt, pdf, csv or json.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

include_notesbooleanrequired

True when the team's internal notes are part of the export.

kindstringrequired

What is exported: conversations, contacts or conversation_facts (each conversation's report figures as a spreadsheet).

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

row_countinteger | nullrequired

How many rows the file holds. Null until it is built.

Format: int64

size_bytesinteger | nullrequired

Size of the export file in bytes. Null until it is built.

Format: int64

statusstringrequired

Where the export stands: pending, running, ready, failed or expired.

urlstring | nullrequired

The API path the ready file downloads from, such as /api/v1/data-exports/dex_.../download. Null unless status is ready.

warningsanyrequired

A list naming what the file could not hold as asked. An empty list when there is nothing to flag.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.