Ingestion
Query Document
Run an on-demand Gemini document query with optional structured output and ingestion.
Args: file: Uploaded source document (PDF or another supported MIME type). prompt: Natural-language instruction to execute against the document. schema: Optional JSON schema enforcing structured Gemini output. ingestion_options: JSON object controlling ingestion follow-up (keys: ingest, use_colpali, folder_name, end_user_id, metadata).
Returns: DocumentQueryResponse containing Gemini outputs, original metadata, and ingestion status details.
post/ingest/document/query
Headers
authorizationstring
Response
Successful Response