Endpoint
Authentication
Requireswrite:extractions 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 | Yes | JSON Schema defining fields to extract |
prompt | string | No | Custom extraction instructions |
model | string | No | Model for Basic mode: google-gemini-2.0-flash, openai-gpt-4.1, or openai-gpt-4o |
extraction_mode | string | No | Set to vlm for VLM mode |
review_threshold | number | No | Confidence threshold for review (0-100, default: 80) |
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)
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