Skip to main content

Choose the response

Send one source to POST /v1/documents. format chooses what to generate. response chooses how the caller receives it.

Handle a queued result

The review build waits up to four seconds for a synchronous request. Check the HTTP status before saving bytes to a PDF. For 202, poll the existing job until completed or failed. Fetch the completed job’s download path with the same bearer credential. Preserve your Idempotency-Key and original JSON if the submission itself must be retried.

Read Base64 safely

For a completed job, GET /v1/documents/{id}/file?encoding=base64 returns the same JSON envelope. Decode its base64 field once. The limit is 3 MiB of file bytes before encoding. On 413, retrieve the same file as binary. For event-driven delivery, see webhook events.