Skip to main content
POST
/
document
/
{documentId}
/
upload
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>"
  }
}

Authorizations

Authorization
string
header
required

API key as Bearer token: Authorization: Bearer okra_xxx

Path Parameters

documentId
string
required

Document ID

Body

application/pdf

The body is of type file.

Response

Upload accepted

phase
enum<string>
Available options:
idle,
uploading,
parsing,
hydrating,
verifying,
awaiting_review,
complete,
error
urls
object