Ingest a Document
Upload one document (up to 500 MB) into a source and queue it for extraction. Alias of POST /v1/sources/{id}/documents with batch mode support.
The ingest endpoint uploads one document (up to 500 MB) into a source and queues it for extraction. It is an alias of POST /v1/sources/{id}/documents, provided as a clearer verb for one-off document ingestion. Pass the file as multipart form data; optionally set processing_mode to batch for deferred, lower-cost extraction (otherwise realtime).
Use ingest when your integration submits documents one at a time, for example from an email handler or an upload form. The document is queued immediately and the response returns a document_id you can use to track extraction progress via the documents API.
processing_mode=batch) trades latency for cost: results arrive within 48 hours at a 50% credit discount./v1/sources/:id/ingestParameters
Request
Response
Response fields
Response
{
"document_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"filename": "contract-2024.pdf",
"status": "queued",
"processing_mode": "realtime",
"source_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"links": {
"document": "/v1/documents/d4e5f6a7-b8c9-0123-defa-234567890123",
"source": "/v1/sources/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Errors
Error responses