/parse and /fill are asynchronous endpoints.
When you submit work, the API returns 202 Accepted with a job_id. You then poll a status endpoint until completion.
Parse flow
POST /parsereturns{ job_id, file_id }- Poll
GET /parse/{job_id} - On success, use
file_idas input to/fill
Fill flow
POST /fillreturns{ job_id, fill_id }- Poll
GET /fill/{job_id} - On success, read
download_urland fetch the PDF
Job status values
queued: accepted and waiting for worker capacityrunning: worker claimed the job and processing startedsucceeded: result is readyfailed: terminal error; inspecterrorfield
Polling recommendations
- Poll every 2-5 seconds.
- Stop polling when
statusissucceededorfailed. - Apply a timeout in your client to avoid infinite retries.