Queues a zip of the attachments in the given conversations. The job runs in the background; listen on the case socket or poll GET /case/:caseId/export for the file.
POST
/case/{caseId}/download-attachments
curl \
--request POST 'http://api.example.com/case/{caseId}/download-attachments' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"conversationIds": [
[]
]
}'
Request examples
# Headers
organization: string
# Payload
{
"conversationIds": [
[]
]
}
Response examples (200)
{
"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"
}