Queues an export of the case's conversations (PDF, RSMF and other formats). The export runs in the background; poll GET /case/:caseId/export or listen on the case socket for progress, then download the export's file.
Body
Required
-
-
-
Device conversation sources to exclude from the export. Applies to device-conversation exports only.
Values are
message,whatsapp,voicemail,call_log,facebook_dump,instagram_dump,threads_dump, oremail. -
Values are
doc,text,csv,pdf,goodfact,rsmf,eml, orfiles-zip. -
Values are
conversation,browser-history,emails,case-files,case-attachments,financial,linkedin,ai-chat, orcontacts. -
Values are
none,day,week,month, oryear. Default value isnone. -
Additional email addresses to send email to when export completes (other than user email)
-
Values are
phone-numbers,comments,tags,app-icons,device-name,images,hide-attachment-links,extra-texts,line-break,device-logs,custom-entry,recently-deleted,deleted-messages-inline,deleted-messages-page,deleted-messages-inline-page,ignore-conversations,search-history-page,hide-page-numbers, orprint-footer-work-timestamp. -
Values are
old-to-newornew-to-old. -
IANA timezone string (e.g. "America/New_York") for formatting the export timestamp
curl \
--request POST 'http://api.example.com/case/{caseId}/export' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"collection": "string",
"conversations": [
[]
],
"excludeConversations": [
[]
],
"excludeDeviceSources": [
"message"
],
"type": "doc",
"source": "conversation",
"chunkType": "none",
"emails": [
"string"
],
"fileName": "string",
"exportConfig": [
"phone-numbers"
],
"sortBy": "old-to-new",
"startDate": "string",
"endDate": "string",
"tags": [
[]
],
"tagsPadding": 42.0,
"device": "string",
"emailExportConfig": {
"providerId": "string",
"emailSearch": {
"searchText": "(discriminate OR racist) AND (\"Larry Graham\" OR Robinson)",
"folders": [
"string"
],
"domains": [
"string"
],
"excludeDomains": [
"string"
],
"tags": [
"string"
],
"excludeTags": [
"string"
],
"untagged": true,
"participants": [
"string"
],
"excludeEmails": [
"string"
],
"startDate": "2024-01-01T00:00:00.000Z",
"endDate": "2024-12-31T23:59:59.999Z",
"ids": [
"string"
],
"exportWholeThread": false
},
"threadSearch": {
"folders": [
"string"
],
"domains": [
"string"
],
"excludeDomains": [
"string"
],
"tags": [
"string"
],
"excludeTags": [
"string"
],
"participants": [
"string"
],
"excludeEmails": [
"string"
],
"starred": true,
"unread": true,
"untagged": true,
"startDate": "2024-01-01T00:00:00.000Z",
"endDate": "2024-12-31T23:59:59.999Z",
"ids": [
"string"
]
},
"includeAttachments": false
},
"includeHiddenEmailThreads": false,
"timezone": "string"
}'
# Headers
organization: string
# Payload
{
"collection": "string",
"conversations": [
[]
],
"excludeConversations": [
[]
],
"excludeDeviceSources": [
"message"
],
"type": "doc",
"source": "conversation",
"chunkType": "none",
"emails": [
"string"
],
"fileName": "string",
"exportConfig": [
"phone-numbers"
],
"sortBy": "old-to-new",
"startDate": "string",
"endDate": "string",
"tags": [
[]
],
"tagsPadding": 42.0,
"device": "string",
"emailExportConfig": {
"providerId": "string",
"emailSearch": {
"searchText": "(discriminate OR racist) AND (\"Larry Graham\" OR Robinson)",
"folders": [
"string"
],
"domains": [
"string"
],
"excludeDomains": [
"string"
],
"tags": [
"string"
],
"excludeTags": [
"string"
],
"untagged": true,
"participants": [
"string"
],
"excludeEmails": [
"string"
],
"startDate": "2024-01-01T00:00:00.000Z",
"endDate": "2024-12-31T23:59:59.999Z",
"ids": [
"string"
],
"exportWholeThread": false
},
"threadSearch": {
"folders": [
"string"
],
"domains": [
"string"
],
"excludeDomains": [
"string"
],
"tags": [
"string"
],
"excludeTags": [
"string"
],
"participants": [
"string"
],
"excludeEmails": [
"string"
],
"starred": true,
"unread": true,
"untagged": true,
"startDate": "2024-01-01T00:00:00.000Z",
"endDate": "2024-12-31T23:59:59.999Z",
"ids": [
"string"
]
},
"includeAttachments": false
},
"includeHiddenEmailThreads": false,
"timezone": "string"
}
{
"data": {
"createdAt": "2026-01-15T14:30:00.000Z",
"updatedAt": "2026-01-15T14:30:00.000Z",
"id": "507f1f77bcf86cd799439011",
"organization": {},
"device": {},
"type": "doc",
"source": "conversation",
"chunkType": "none",
"exportedBy": "507f1f77bcf86cd799439011",
"tags": [
{}
],
"emails": [
"jane.doe@example.com"
],
"caseFileIds": [
"507f1f77bcf86cd799439015"
],
"fileName": "doe-v-example-export.pdf",
"file": {
"createdAt": "2026-01-15T14:30:00.000Z",
"updatedAt": "2026-01-15T14:30:00.000Z",
"id": "507f1f77bcf86cd799439011",
"name": "photo.heic",
"providerId": "uploads/507f1f77bcf86cd799439011/photo.heic",
"convertedName": "photo.jpg",
"convertedProviderId": "uploads/507f1f77bcf86cd799439011/photo.jpg",
"provider": "s3",
"size": 204800,
"transferState": 42.0
},
"sortBy": "old-to-new",
"size": 1048576,
"errorMessage": "string",
"totalMessages": 1200,
"messagesProcessed": 600,
"totalConversations": 12,
"conversationsProcessed": 6,
"status": "not-started",
"jobId": "job-1234",
"totalJobs": 1,
"emailData": [
[
{}
]
],
"metadata": {},
"failedThreadsCount": 0,
"cmpSyncStatus": "pending",
"progress": 100,
"conversationNames": [
"Jane Doe"
],
"caseName": "Doe v. Example Corp"
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}