Exports
Download results as JSON, CSV or Excel.
Export several documents
POST /documents/export
/documents/exportcurl
curl -X POST "https://api.kita.ai/api/v1/documents/export" \
-H "Authorization: Bearer $KITA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"document_ids": [
42
],
"format": "json"
}'Request body · application/json
| Field | Type | Description |
|---|---|---|
document_idsrequired | integer[] | |
formatrequired | string | One of: json, csv, excel. |
200 Export file.
Errors
| Field | Type | Description |
|---|---|---|
400 | error | The request was rejected. See `error` for the machine-readable code. |
Download a single document as Excel
GET /documents/{document_id}/export
Multi-sheet .xlsx export built from the document's type-specific schema.
Supported for AFS, credit reports, SLIK and all schema-based types. An AFS
export is a 17-sheet workbook covering company info, balance sheet, income
statement, cash flow, notes and schedules, ratios and signals, risk flags,
data validation, prior-year comparison, business and shareholders,
shareholders detail, equity structure, tax and risk, supplementary and
policies, completeness score, audit info and officers.
Returns 400 INVALID_EXPORT_TYPE if the type has no export schema.
/documents/{document_id}/exportcurl
curl -X GET "https://api.kita.ai/api/v1/documents/42/export" \
-H "Authorization: Bearer $KITA_API_KEY"Path parameters
| Field | Type | Description |
|---|---|---|
document_idrequired | integer | Positive integer document ID. |
200 Binary workbook with a `Content-Disposition` header.
Errors
| Field | Type | Description |
|---|---|---|
400 | error | The request was rejected. See `error` for the machine-readable code. |
404 | error | Resource does not exist, or belongs to another organization. |

