Endpoint
Authentication
Requiresextractions:write scope.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string (UUID) | Yes | ID of the uploaded document |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
schema | object | No | JSON Schema defining fields to extract. Strongly recommended for structured output |
prompt | string | No | Custom extraction instructions |
model | string | No | Model for Basic mode: qwen-3-vl, google-gemini-2.5-flash, or google-gemini-3-flash |
extraction_mode | string | No | Set to vlm for VLM mode |
review_threshold | number | No | Confidence threshold for review (0-100, default: 80) |
include_citations | boolean | No | Enable citation/source matching. Only available for Advanced mode |
agentic_ocr | boolean | No | Use the higher OCR tier for Advanced mode parsing |
confidence_instruction | string | No | Additional instructions for confidence scoring in Advanced mode |
Extraction Modes:
- Basic: Set
modelparameter (2-6 credits/page) - VLM: Set
extraction_modetovlm(10 credits/page) - Advanced: Don’t set
modelorextraction_mode(15 credits/page with confidence scoring)
model or extraction_mode when include_citations is true.Response
Success (200)
Examples
Error Responses
| Code | Description |
|---|---|
| 400 | Invalid schema or parameters |
| 402 | Insufficient credits |
| 404 | Document not found |
| 500 | Extraction failed |
Next Steps
Upload Documents
Upload documents first
List Extractions
Query extraction results