Skip to content

Ingestion Status

GET {{base_url}}/v1/documents/envelopes/{{ingest_token}}/status

Returns the batch processing progress. When the status changes to ready, the response includes the actual document_token, which must be used for subsequent queries in the document reading endpoints.


ParameterTypeDescriptionLimits
Authorization*stringBearer authentication token.Required (Bearer <token>)

ParameterTypeDescriptionLimits
ingest_token*string (UUID)The identifier token of the batch received in the 202 response from the async endpoint.Required

Shows the batch status while files are being downloaded and assembled in the background.

{
"ingest_token": "01234567-...",
"status": "ingesting",
"documents_total": 80,
"documents_ingested": 67,
"documents_failed": 0,
"bytes_ingested": 743891200,
"bytes_limit": 1073741824,
"errors": [],
"document_token": null,
"external_id": "BATCH-12345",
"started_at": "2026-04-15T14:30:00Z",
"completed_at": null
}
NombreTypeDescription
ingest_tokenstring (UUID)Unique identifier of the ingestion process.
statusstringCurrent batch status: ingesting · assembling · ready · failed · cancelled.
documents_totalintegerTotal number of documents sent in the batch.
documents_ingestedintegerNumber of documents already downloaded and successfully processed.
documents_failedintegerNumber of documents that failed during ingestion.
bytes_ingestedintegerNumber of bytes processed so far.
bytes_limitintegerMaximum allowed weight limit for the batch (1 GB total).
errorsarrayCollection with details of individual errors per document.
document_tokenstring (UUID)Final envelope token (null while in progress).
external_idstringExternal identifier sent during batch creation (pass-through).
started_atstring (ISO8601)Start date and time of background processing.
completed_atstring (ISO8601)Batch completion date and time (null while in progress).

Response structure when processing has finished successfully and the envelope is ready for production.

{
"ingest_token": "01234567-...",
"status": "ready",
"documents_total": 80,
"documents_ingested": 80,
"documents_failed": 0,
"document_token": "abcdef01-...",
"external_id": "BATCH-12345",
"started_at": "2026-04-15T14:30:00Z",
"completed_at": "2026-04-15T14:42:00Z"
}
NombreTypeDescription
ingest_tokenstring (UUID)Unique identifier of the ingestion process.
statusstringFinal successful status: ready.
documents_totalintegerTotal number of processed documents.
documents_ingestedintegerNumber of successfully processed documents.
documents_failedintegerNumber of failed documents (0 on total success).
document_tokenstring (UUID)Definitive envelope token generated for use in the rest of the API.
external_idstringExternal identifier associated with the batch.
started_atstring (ISO8601)Ingestion start date and time.
completed_atstring (ISO8601)Exact process completion date and time.

Structure returned if one or more files could not be integrated into the envelope (for example, download failures from source URLs).

{
"ingest_token": "01234567-...",
"status": "failed",
"failure_reason": "source_error",
"documents_total": 80,
"documents_ingested": 79,
"documents_failed": 1,
"errors": [
{
"ref_id": "doc-43",
"error": "The URL for 'doc-43' responded with HTTP 404."
}
],
"document_token": null
}
NombreTypeDescription
ingest_tokenstring (UUID)Unique identifier of the ingestion process.
statusstringTerminal failure status: failed.
failure_reasonstringGeneral failure reason code. Possible values: `timeout` (download timed out), `size_limit` (exceeds weight limit), `source_error` (error downloading from source URL) or `internal_error` (internal server error).
documents_totalintegerTotal number of requested documents.
documents_ingestedintegerNumber of documents that were processed before the failure.
documents_failedintegerNumber of documents that triggered the error.
errorsarrayList of error objects with the ref_id of the affected document and the error message detail.
document_tokennullNo envelope token is generated if ingestion fails.

Code Status Description
401 Unauthorized The authentication token is invalid, expired, or was not sent.
404 Not Found The provided ingest_token does not exist or does not belong to the active organization.