API Reference: Exports

Endpoints for creating and retrieving evidence bundles.

Create Export — POST /exports

curl -X POST https://api.xase.ai/v1/exports   -H "Authorization: Bearer xase_pk_..."   -H "Content-Type: application/json"   -d '{
    "record_id": "rec_8a7f3b2c",
    "include_related": true,
    "format": "zip"
  }'

Response

{
  "id": "exp_abc123",
  "status": "ready",
  "download_url": "https://exports.xase.ai/exp_abc123.zip?token=...",
  "expires_at": "2025-01-15T15:32:00.000Z",
  "file_size": 15234,
  "records_count": 1
}

Get Export Status — GET /exports/{id}

curl -X GET https://api.xase.ai/v1/exports/exp_abc123   -H "Authorization: Bearer xase_pk_..."

Response

{
  "id": "exp_abc123",
  "status": "ready",
  "download_url": "https://exports.xase.ai/exp_abc123.zip?token=...",
  "expires_at": "2025-01-15T15:32:00.000Z",
  "file_size": 15234,
  "records_count": 1
}
Exports are time-limited links. You can also request batch exports by `record_ids` or `filters`.