Extract Sync
Extract structured data from a document synchronously
This is a synchronous API endpoint. This endpoint will return the result once the document is processed.
Body Parameters
Either file or URL is required but not both. See Accepted File Types.
URL of the document to extract data from
The file to extract data from
JSON schema to define the structure of extracted data. See JSON schema examples.
Whether to exclude OCR result from the response. Defaults to false.
Whether to maintain format from the previous page. Defaults to false.
Array of page numbers to process. Defaults to all pages.
Array of schema properties to extract per page. Defaults to empty array.
Unique identifier for the webhook callback
Example JSON Schema
This is a JSON Schema, which defines the structure and validation rules for the JSON. For more examples and details, see JSON Schema Examples.
Response
Response object containing OCR results and extracted data