Submit a document for extraction
Accepts a single document and queues it for asynchronous extraction.
More details
More details
Body
Optional extraction schema as a JSON string; required by the 'ocr_extract' pipeline. When omitted, 'extract' generates one and returns it under result.schema with generated: true. The object must match the engine's DocumentSchema shape: required 'document_type', plus optional 'tables' and 'form_fields', where each form field requires 'field_name' (the verbatim label printed on the document), 'field_type' (text | number | date | checkbox | radio | dropdown | signature | handwriting | graph | image | logo | stamp | qr_code | textarea | currency | unknown) and 'page_index' (1-indexed). A schema that parses but does not match that shape fails later on the job, with the engine's validation errors under error.detail.
"{\"document_type\":\"insurance_claim_form\",\"form_fields\":[{\"field_name\":\"Policy Number\",\"field_type\":\"text\",\"page_index\":1}]}"