Parsec OCR

Authenticate & Submit PDF

01

Send a multi-page PDF along with a strict JSON Schema definition.

curl https://api.parsecocr.io/v2/extract \
  -H "Authorization: Bearer $PARSEC_API_KEY" \
  -F "file=@q4_statement.pdf" \
  -F "schema_id=fin_balance_sheet_v4" \
  -F "reconcile=true"
  • — Accepts native digital PDFs, 200–600 DPI scanned TIFFs, and password-protected investor packets.
  • — Zero-retention header X-Parsec-Retention: none purges buffers immediately after response delivery.

Define Schema & Footing Rules

02

Lock every numeric value to fixed-point decimal strings and assert subtotal equality.

{
  "schema_id": "invoice_v3",
  "fields": {
    "invoice_number": { "type": "string", "required": true },
    "currency": { "type": "enum", "values": ["USD", "EUR", "GBP"] },
    "line_items": { "type": "table", "stitch_across_pages": true },
    "grand_total": { "type": "decimal", "scale": 2 }
  },
  "assertions": ["sum(line_items.amount) + tax == grand_total"]
}
  • — Decimal fields serialize as strings to avoid IEEE-754 floating-point rounding drift.
  • — Failed assertions flag review_required: true with exact cell coordinates of the discrepancy.

Inspect Provenance Payload

03

Every extracted attribute includes normalized coordinates and confidence calibration.

{
  "grand_total": {
    "value": "148920.50",
    "confidence": 0.9996,
    "page": 4,
    "bbox": [0.712, 0.814, 0.849, 0.831]
  },
  "reconciliation": { "passed": true, "delta": "0.00" }
}
  • — Bounding boxes use normalized [x1, y1, x2, y2] page ratios for direct PDF viewer highlighting.
  • — Confidence scores are temperature-calibrated against our public SEC and invoice test sets.

Asynchronous Batch Ingestion

04

Process millions of archival filings directly from S3 or GCS buckets.

parsec batch submit \
  --source s3://vault-filings-2026/10k/ \
  --output s3://vault-structured/parquet/ \
  --schema fin_balance_sheet_v4 \
  --concurrency 120
  • — Emits Apache Parquet or NDJSON directly into your warehouse bucket with idempotent job keys.
  • — Automatically checkpoints per-document completion and retries transient storage errors.