Split a PDF
Authorization
ApiKeyAuth AuthorizationBearer <token>
API key from API Keys in the dashboard menu.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/documents/split" \ -H "Content-Type: application/json" \ -d '{ "file": { "name": "batch.pdf", "url": "https://example.com/batch.pdf" }, "criteria": "Each invoice starts on a page with an invoice number at the top" }'{ "documents": [ {} ], "pageCount": 0, "unassigned_pages": [ 0 ], "credits_used": 0}Compare POST
Check two to five documents against each other, field by field and line by line, from data already read out of them (for example with Extract data). Returns what matches, what does not, and why.
Generate an image POST
A new picture made by AI from a description. The file comes back with a download link that works for 24 hours.