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.
Successful Response
Response model for document query with optional ingestion follow-up.
Raw structured output returned from Morphik On-the-Fly (may be list/dict)
Structured output coerced to metadata when possible
Raw text returned from Morphik On-the-Fly when no schema is provided
True when the document was queued for ingestion after extraction
Queued document stub when ingestion_enqueued is true
Original metadata supplied alongside the request
Metadata that would be used if ingestion is performed
Normalized ingestion options applied to this request