cURL
curl -X POST https://api.okrapdf.com/document/my-doc/upload \ -H "Authorization: Bearer okra_YOUR_KEY" \ -H "Content-Type: application/pdf" \ --data-binary @report.pdf
{ "phase": "idle", "urls": { "status": "<string>", "page_images": "<string>", "viewer": "<string>" } }
Upload raw PDF bytes directly. Set Content-Type: application/pdf. Ideal for piping from other tools.
Content-Type: application/pdf
API key as Bearer token: Authorization: Bearer okra_xxx
Authorization: Bearer okra_xxx
Document ID
The body is of type file.
file
Upload accepted
idle
uploading
parsing
hydrating
verifying
awaiting_review
complete
error
Show child attributes