Poll this until is_terminal is true.
A resource_id that exists for this tenant but has produced no documents yet answers 200
with an empty documents array and a non-terminal status -- carriers commonly index
images only after delivery, so "nothing yet" is the normal early answer. A resource_id
unknown to this tenant, or belonging to another tenant, answers 404 either way: this surface
never distinguishes the two.
Successful Response
required | object (DocumentCollectionResult) Every document retrieved for one resource_id, deduplicated across however many retrieval tasks produced them. Polling is the completion signal, the same as rating and dispatch: |
Validation Error
No such resource_id, or it belongs to another tenant.
An unknown internal server issue occured while processing a request. A report is created and logged.
{- "data": {
- "documents": [
- {
- "completed_at": "2026-08-20T11:04:18.220Z",
- "document_type": "BOL",
- "files": [
- {
- "filename": "bol-77120.pdf",
- "format": "PDF",
- "size_in_bytes": 184223,
- "too_large_for_inline": false
}
], - "id": "01KBZD1P4M0000000000000000",
- "name": "Bill of Lading",
- "resource_type": "document",
- "status": "COMPLETED"
}
], - "errors": [ ],
- "is_terminal": true,
- "resource_id": "9f2c1b84-6d3a-4c17-9b0e-2f5a7c48d31e",
- "resource_type": "document_collection",
- "status": "COMPLETED"
}
}