POST /chat/query/ to ask a question against one or more topics and optionally continue the same conversation by sending back the returned chat_id.
Send your API key in the X-API-KEY header. The body must include query.
Request Notes
- Topic scoping supports both single-value and list forms:
topic_nameortopic_names, andtopic_uuidortopic_uuids. - Prefer the plural fields for new integrations. The singular fields are still accepted for backward compatibility.
- Do not send both topic names and topic UUIDs in the same request.
- If you omit all topic fields, the request only succeeds when your organization has smart topic selection enabled or when
metadata.selected_pdf_filenamesis provided. - Send
chat_idto continue an existing API chat. Omit it to start a new thread. org_nameis only required when using the masterVOLTAIAPI key for another organization.part_selection: trueforces part-selection behavior.highlight_sourcesdefaults totrue.
Response Notes
- The endpoint returns a single JSON object, not an array.
final_answeris the cleaned answer text returned by the agent.sourcescontains text citations only, with a filename, page number, and library URL.modereturns the resolved reasoning/query-complexity value when available.latenciesis typically an empty object unless the request is made in the master Voltai admin context.