DocsProcessor API
Processor

Processor API

POST /v1/batches/estimate
curl -X POST https://poldex-api.plain-water-cd0f.workers.dev/v1/batches/estimate \
  -H "x-api-key: pd_live_YOUR_KEY" \
  -F "schema=commercial_gl" \
  -F "files=@policy.pdf"

Create

Create a batch with POST /v1/batches, then poll GET /v1/batches/{batch_id}.

Review

Completed batch items expose signed JSON, CSV, and XLSX result links. The Processor cockpit loads the signed JSON result, renders extracted facts and evidence, and saves operator decisions or field notes through the review endpoint.

POST /v1/batches/{batch_id}/items/{item_id}/review
curl -X POST https://poldex-api.plain-water-cd0f.workers.dev/v1/batches/bat_123/items/bit_123/review \
  -H "x-api-key: pd_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "decision": "review",
    "field_notes": {
      "general_liability.each_occurrence_limit": "Reviewer confirmed value on declarations page."
    }
  }'

Downloads

Batch downloads include manifest CSV, combined CSV, combined XLSX, and results ZIP.