Chat V2
Answers a chat message with structured response preserving paragraph-level citations.
V2 Changes:
- Structured response with
itemsarray (paragraphs) - Per-paragraph citations and links
- Removed deprecated fields (library_id, document_id)
Response Structure: Each response item represents a paragraph with:
text: The paragraph contentcitations: Sources cited in this specific paragraphlinks: Search result links related to this paragraph
Example Response:
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The domain of the customer
"example.com"
Body
Synchronous chat request with option to exclude quoted text.
The message to be sent to the assistant
The id of the agent to scope this chat request
The conversation ID of the chat message. If not provided, a new conversation will be created.
Answer the question in the context of these libraries
Answer the question in the context of these documents
Answer the question in the context of the view
Timezone of the user. If not provided we use UTC timezone. Format: offset from UTC, in minutes (JavaScript getTimezoneOffset)
Disable tools that can modify documents for this request
Include quoted text in citations. Set to false to reduce response size.
Response
Successful Response
Structured chat response preserving paragraph-level granularity.
Each response item represents a logical unit (typically a paragraph) with its own citations, links, and search metadata. This allows clients to:
- Display inline citations per paragraph
- Show relevant search links contextually
- Understand which searches contributed to each answer part
Example: { "metadata": { "conversation_id": "uuid", "message_id": "uuid", "response_id": "uuid" }, "items": [ { "text": "Alice is 32 years old.", "citations": [{"document_title": "Employee Records", ...}], "links": [] }, { "text": "She works at AODocs as a software engineer.", "citations": [{"document_title": "Team Directory", ...}], "links": [{"title": "View team directory", "url": "..."}] } ] }