Skip to main content
POST
Structured extraction

Phase

Phase 3 — Ships only if $1K+ MRR. Requires LLM infrastructure.

Request

object
required
The PDF to extract from. Same source options as other endpoints:
  • { "pdf_id": "pdf_abc123" }
  • { "url": "https://example.com/invoice.pdf" }
  • { "base64": "JVBERi0x..." }
string
Use a built-in extraction preset. Mutually exclusive with schema. Available presets:
  • invoice — Extracts: vendor, customer, line items, subtotal, tax, total, invoice number, dates.
  • receipt — Extracts: merchant, items, total, payment method, date.
  • contract — Extracts: parties, effective date, termination date, key terms, signatures.
  • resume — Extracts: name, contact, experience, education, skills.
object
Custom extraction schema. Define the exact fields you want extracted. Mutually exclusive with preset.
string
default:"all"
Pages to extract from.

Response

number
AI confidence score. Range: 0.0 to 1.0. Below 0.8 suggests ambiguous or low-quality source document.
object
Extracted data matching the preset or custom schema. Field types match what was specified.

Example