Export Document
Reference for GET /v1/extractions/:extraction_id/documents/:document_id/export.
GET /v1/extractions/:extraction_id/documents/:document_id/export
Download extracted data for a single document as JSON, CSV, or Excel (XLSX). Both extraction_id and document_id are required.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
extraction_id | string | ✅ | The extraction job ID. |
document_id | string | ✅ | The document ID. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | ❌ | json (default), csv, or xlsx. |
Response 200 OK
Returns a file download stream with appropriate Content-Disposition and Content-Type headers.
Common Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing API key. |
404 | RESOURCE_NOT_FOUND | Extraction or document not found. |