Documents
Upload a document
post/documents
Request
- Base URL: https://klaaro.ai/api/v1
- URL: https://klaaro.ai/api/v1/documents
- Auth: HTTP bearer
Headers
Idempotency-Keystring uuid
Client-generated UUID. If a request with this key was already processed within 24 h, the original response is returned without re-processing. Response includes Idempotency-Replay: true header when served from cache.
Request body
Response
Document created
Example response
{
"id": "b6d2a7f6-0f44-44c8-8cc2-1d2e2bd7a5d5",
"datasetId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"datasetSlug": "invoices-2026",
"filename": "invoice_2026-0001.pdf",
"fileType": "application/pdf",
"fileSize": 248312,
"status": "completed",
"currentStep": "extract",
"class": {
"slug": "invoice",
"name": "Invoice"
},
"error": null,
"ingestSourceDisplay": "Upload",
"pipeline": {
"lastRunId": null,
"lastFinishedAt": null,
"fromStep": null
},
"createdAt": "2026-05-22T12:58:00Z",
"updatedAt": "2026-05-22T13:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.