v2-api
document-agent
Query document(s) with an AI agent (synchronous)
Changed onRun the full document agent against one or more indexed PDFs or documents. The agent uses tools (search, read sections, read pages) to research the document(s) and produce a comprehensive answer with citations. Supports optional structured output via json_schema.
This endpoint is synchronous and holds the HTTP connection for the entire agent run (typically 1-10 minutes). For production workloads or anything that may run longer, use POST /document/agent/jobs instead — it returns a job_id immediately and lets you poll or stream results without an HTTP connection limit.
post/document/agent
Request
- The document declares no server URL.
- Authnone declared
Request body
Response
Successful Response
Changes
- info
api tag
document-agentadded - info
api tag
v2-apiadded - info
api tag
Usageremoved
- info