Records a cancel request: an export that has not started is cancelled at once and its queue job removed, and a running export stops at its next conversation boundary. Repeating it on a cancelled export succeeds. Only conversation PDF exports can be cancelled; other exports and completed or failed ones return 400, an unknown export 404, and 403 while export cancellation is turned off. Super admin only.
POST
/admin/exports/{id}/cancel
curl \
--request POST 'http://api.example.com/admin/exports/{id}/cancel' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"exportId": "65a1b2c3d4e5f6a7b8c9d0f1",
"cancelRequested": true,
"jobRemoved": false,
"effectiveAt": "next-conversation-boundary",
"message": "Cancellation requested; the export stops at its next conversation boundary."
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}