Kita CaptureAPI reference

Exports

Download results as JSON, CSV or Excel.

Export several documents

POST /documents/export

POST/documents/export

curl

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

FieldTypeDescription
document_idsrequiredinteger[]
formatrequiredstringOne of: json, csv, excel.

200 Export file.

Errors

FieldTypeDescription
400errorThe 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.

GET/documents/{document_id}/export

curl

curl -X GET "https://api.kita.ai/api/v1/documents/42/export" \
  -H "Authorization: Bearer $KITA_API_KEY"

Path parameters

FieldTypeDescription
document_idrequiredintegerPositive integer document ID.

200 Binary workbook with a `Content-Disposition` header.

Errors

FieldTypeDescription
400errorThe request was rejected. See `error` for the machine-readable code.
404errorResource does not exist, or belongs to another organization.

On this page