parse

Parse a document asynchronously

Changed on

Admit a durable parse job and return immediately.

Example (multipart/form-data):

curl -X POST 'https://api.openparser.dev/parse/async' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H "Idempotency-Key: $(uuidgen 2>/dev/null || openssl rand -hex 16)" \
  -F 'request={"ocr_model":"paddleocr-vl-1.6","output_format":"openparser@1"};type=application/json' \
  -F 'file=@./document.pdf'
post/parse/async

Request

  • Base URL: https://api.openparser.dev
  • URL: https://api.openparser.dev/parse/async
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Client-supplied idempotency key. Required on every parse or extract POST. Must be unique per distinct request body for a given tenant and operation.

Response

Durable non-terminal job admitted. Returned by async endpoints and by sync endpoints when the wait limit expires before a terminal status.

idstring required

Prefixed public id for an OCR job (opj_…).

operation'parse' | 'extract' required
status'queued' | 'running' | 'succeeded' | 'failed' | 'indeterminate' required

Durable job status. For batch parent jobs, status is derived from children after each child transition:

  1. If any child is non-terminal, the parent remains queued only while every child is queued; it becomes running once any child is running or terminal.
  2. When every child is terminal and any child is indeterminate, the parent is indeterminate.
  3. When every child is terminal, none are indeterminate, and any child is failed: the parent is failed if zero children succeeded, otherwise succeeded (mixed success/failure closes as parent succeeded while preserving failed children in summaries).
  4. When every child is succeeded, the parent is succeeded.

Partial failures are always retained on child summaries; parent status does not drop failed children from results.

output_format'openparser@1' | 'raw' required
created_atstring date-time required
updated_atstring date-time required

Example response

{
  "id": "opj_V1StGXR8_Z5jdHi6B-myT"
}

Changes

    • breaking

      added 'propertyNames' constraint to the request property /

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property //