V2
Extract
Generate Extraction Schema
Generate a JSON schema and return a product configuration request.
post/api/v2/extract/schema/generate
Query parameters
project_idstring uuid nullable
organization_idstring uuid nullable
Cookies
sessionstring nullable
Request body
Example request
{
"name": "invoice_extraction",
"prompt": "Extract vendor name, invoice number, date, line items with descriptions and amounts, and total amount from invoices."
}Response
Successful Response
Example response
{
"parameters": {
"target_pages": "1,3,5-7",
"max_pages": 10,
"tier": "cost_effective",
"version": "latest",
"extraction_target": "per_doc",
"system_prompt": "Extract all monetary values in USD. If a currency is not specified, assume USD.",
"parse_tier": "fast",
"parse_config_id": "cfg-11111111-2222-3333-4444-555555555555"
}
}