Skip to main content
POST
/
v1
/
documents
/
{id}
/
reparse
curl -X POST https://api.okrapdf.com/v1/documents/doc-abc123/reparse \
  -H "Authorization: Bearer okra_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"strategy": "premium"}'

Overview

Triggers a fresh extraction run on an existing document, replacing previous results. Useful when you want to re-process with a different strategy or after engine improvements.

Request

id
string
required
Document ID (e.g. doc-abc123) or 6-char short hash.
strategy
string
Processing strategy override.
capabilities
string
Comma-separated capability flags.
curl -X POST https://api.okrapdf.com/v1/documents/doc-abc123/reparse \
  -H "Authorization: Bearer okra_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"strategy": "premium"}'

Response (202)

{
  "id": "doc-abc123",
  "phase": "extracting"
}