Queue an asynchronous compliance export
LogsPOST /export/compliance
Queues a ZIP package of all tenant data (tenant metadata, each dataset as CSV and JSON, the audit chain and its verification result, and a manifest with row counts) and returns the export record with status queued and 202. Only one export may be queued or running per tenant; another request returns 409. The request is recorded in the audit chain and remains allowed after the workspace is closed. Requires the compliance:export permission.
Returns
202 Queue an asynchronous compliance export
Show attributes
idstatusone of
queued,running,completed,failedfile_namesize_bytessha256audit_chain_verifiederrordownload_urlcreated_atstarted_atcompleted_at
Permissions compliance:export · Roles: admin, owner
curl -X POST "$BUSINESS_API/export/compliance" \
-H "Authorization: Bearer sk_test_..."
# No matching CLI command; use cURL or direct HTTP.
const res = await fetch("$BUSINESS_API/export/compliance", {
method: "POST",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.post(
"$BUSINESS_API/export/compliance",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("POST", "$BUSINESS_API/export/compliance", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"id": "com_2iGtfOIPN6mnFkwXXuCbD6uJj8K",
"status": "queued",
"file_name": "Ana Matsinhe",
"size_bytes": 1,
"sha256": "sha256",
"audit_chain_verified": true,
"error": "error",
"download_url": "https://example.org/",
"created_at": "2026-11-19T09:30:00Z",
"started_at": "2026-11-19T09:30:00Z",
"completed_at": "2026-11-19T09:30:00Z"
}