Skip to main content
POST
Create session chat

Authorizations

x-api-key
string
header
required

Path Parameters

sessionId
string
required

The id of the parent session.

Body

application/json

Body for POST /api/sessions/{sessionId}/chats. Both an empty body and an omitted body are valid.

id
string

Optional client-supplied chat id (used for optimistic UI flows). When omitted, the server generates a UUID. When supplied, must be a non-empty string.

Minimum string length: 1

Response

Chat created, or existing chat returned (idempotent on same-session reuse).

chat
object
required