v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-01-226780228.2 KB
Ingestion

Query Document

Execute a one-off analysis for a document using Morphik On-the-Fly, optionally enforcing structured output and scheduling a follow-up ingestion.

ingestion_options is a JSON string controlling post-analysis ingestion behaviour via keys such as ingest, metadata, use_colpali, folder_name, and end_user_id. Additional keys are ignored. A :class:DocumentQueryResponse describing the inline analysis and any queued ingestion is returned.

post/ingest/document/query

Headers

authorizationstring nullable

Response

Successful Response

{"stackTrail":"components:schemas:DocumentQueryResponse:properties:structured_output:anyOf","oasType":"schema","type":"unknown","title":"Structured Output","description":"Raw structured output returned from Morphik On-the-Fly (may be list/dict)","nullable":true}
extracted_metadataobject nullable

Structured output coerced to metadata when possible

text_outputstring nullable

Raw text returned from Morphik On-the-Fly when no schema is provided

ingestion_enqueuedboolean

True when the document was queued for ingestion after extraction

input_metadataobject

Original metadata supplied alongside the request

combined_metadataobject

Metadata that would be used if ingestion is performed