Create Request
Submit an inference request for a supported document with up to 2,000 pages. Upon receiving the request, the API immediately returns a Request ID. The input file is divided into batches of 10 pages each, and inference is performed on each batch.
Retrieve Results
Retrieve inference results by request ID and check the status of each batch in real-time.
How to get your parsed results:
- Poll this endpoint until the top-level
statusiscompleted(or track eachbatches[].statusindividually). - For each completed batch, download its result from
batches[].download_url. - Each download is a JSON object in the same format as the synchronous Document Parse response —
elements,content(html/markdown/text),coordinates,usage, and so on — covering the pages from that batch'sstart_pagetoend_page. - Concatenate the batches in
idorder to reconstruct the full document.
Each download_url is a pre-signed link valid for 15 minutes; re-fetch this endpoint to obtain fresh URLs. Results remain available for 30 days from the time of the request.
List Requests
Retrieve a list of all your document parsing async requests with their status and timestamps.
Handling Errors
In Document Parse Async APIs, errors can occur in three different scenarios: