Skip to main content
POST
Chat V2

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tenant
string | null
required

The domain of the customer

Example:

"example.com"

Body

application/json

Synchronous chat request with option to exclude quoted text.

message
string
required

The message to be sent to the assistant

agent_id
string | null

The id of the agent to scope this chat request

conversation_id
string | null

The conversation ID of the chat message. If not provided, a new conversation will be created.

library_ids
string[] | null

Answer the question in the context of these libraries

document_ids
string[] | null

Answer the question in the context of these documents

view_id
string | null

Answer the question in the context of the view

timezone
integer
default:0

Timezone of the user. If not provided we use UTC timezone. Format: offset from UTC, in minutes (JavaScript getTimezoneOffset)

read_only
boolean
default:false

Disable tools that can modify documents for this request

include_quotes
boolean | null
default:false

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": "..."}] } ] }

metadata
ChatResponseMetadataV2 · object
required

Metadata including conversation, message, and response IDs

items
ChatResponseItemV2 · object[]
required

Structured response items, typically paragraphs with their sources