Skip to main content
Error responses contain code and message. This example shows a missing-document error:

Correct the request

Coverage of HTTP statuses and error codes varies by endpoint. The API reference defines each operation’s responses. The Extract reference does not yet list the HTTP 502 profile_unavailable response for direct document extraction. Follow the profile_unavailable guidance in the table if you receive this response.

Recover from an insufficient balance

HTTP 402 with insufficient_balance rejects a Parse or Extract request before creating a job. Add balance before resubmitting the request. The response includes these fields in addition to code and message:
  • balance_usd: available account balance in US dollars.
  • jobs_still_running: number of account jobs still running. Those jobs finish normally.
  • job_id: always null, because the rejected request created no job.
The balance error differs from HTTP 403 with quota_exceeded, which reports an exhausted free page allowance. Inspect the error code to choose the recovery action.

Retrieve a finished job’s result

An HTTP 500 internal_error can mean that a job finished, but the service could not prepare its result. The job and its stored output remain intact. Do not submit the document again to recover the result. Read the response message to choose the next action:

Check a response that looks successful

Before using an HTTP 200 response, check status, warnings, and the expected content field: markdown, elements, or extracted_data. If the expected field is empty or unusable, keep the response and job ID, compare the output with the source document, and follow the support request guidance if the problem continues. An empty result is not confirmation that the document was processed correctly.

If an SSE stream disconnects

A dropped server-sent-events connection leaves the job outcome unknown. Use the same job ID or retrieval path to request the current status and result. If the job is still queued or processing, continue following it through request progress. Do not resubmit until you know the original job has reached a final status.

Report a persistent problem

Provide the operation, HTTP status, public error code, and job ID when you open a support request. Do not send your API key or confidential document contents.