For the simplest integration, use the Python SDK. The SDK handles authentication, polling, and provides typed responses.
Authentication
All requests require an API key in theX-API-Key header:
Request Pattern
All processing endpoints follow this pattern:- Submit a document for processing (returns immediately with a
request_id) - Poll the status endpoint until processing completes
- Retrieve results from the completed response
Submit Request
Poll for Results
Document Conversion
Convert documents to Markdown, HTML, JSON, or chunks. Endpoint:POST /api/v1/convert
Request
Parameters
Processing Modes
Response
Pollrequest_check_url until status is complete:
For structured data extraction, see the Extract endpoint. For document segmentation, see the Segment endpoint.
Structured Extraction
Extract structured data from documents using a JSON schema. Endpoint:POST /api/v1/extract
Request
Parameters
The extracted data is returned in
extraction_schema_json in the poll response.
See Structured Extraction for detailed examples.
Document Segmentation
Segment documents into structured sections using a JSON schema. Endpoint:POST /api/v1/segment
Parameters
See Document Segmentation for detailed examples.
Track Changes
Extract tracked changes (insertions and deletions) from DOCX files. Endpoint:POST /api/v1/track-changes
Custom Processor
Execute custom AI-powered processors on documents. Endpoint:POST /api/v1/custom-processor
Parameters
Form Filling
Fill forms in PDFs and images. Endpoint:POST /api/v1/fill
Request
Parameters
Field Data Format
Response
See Form Filling for more examples.
File Management
Upload and manage files for use in pipelines.Upload File
Step 1: Request an upload URLList Files
Get File Metadata
Get Download URL
Delete File
Thumbnails
Generate page thumbnails from a previously processed document:
Response:
Create Document
Generate DOCX files from markdown with track changes support:Webhooks
Configure webhooks to receive notifications when processing completes instead of polling. Set a default webhook URL in your account settings, or override per-request with thewebhook_url parameter.
See Webhooks for configuration details.
Rate Limits
Default rate limits apply per API key. If you exceed limits, you’ll receive a429 response.
See Rate Limits for details and how to request higher limits.
Next Steps
SDK Reference
Use the Python SDK for a simpler integration with typed responses.
Webhooks
Receive notifications when processing completes instead of polling.
API Limits
Understand file size limits, page limits, and rate limiting.
Document Conversion
Detailed guide to converting documents to Markdown, HTML, or JSON.