Create a new chat with segments (messages and tool invocations)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Chat creation payload. Supports singular (agent/customer) or plural (agents/customers) formats.
When the chat started (ISO 8601 format)
When the chat ended (ISO 8601 format)
Ordered list of messages exchanged during the chat
List of tool invocations made during the chat
Custom properties to include with the chat. These can be used for filtering and will show in the chat details page
{
"source": "web",
"region": "US",
"sessionId": "abc123"
}Optional OpenTelemetry trace ID for the chat. Surfaces the chat in the tracing tab.
"4bf92f3577b34da6a3ce929d0e0e4736"
Single agent participating in the chat. Use this for the simpler API when you have only one agent.
Agents participating in the chat. Each agent requires identification and prompt information.
Agent participating in the chat with their identification and prompt
Single customer participating in the chat. Use this for the simpler API when you have only one customer.
Customers participating in the chat.
Chat created successfully
Response containing the created chat information