PAI Chat·Endpoint
POST
/chatCreate a new chat session. Authenticated users create regular/incognito chats. A
Create a new chat session. Authenticated users create regular/incognito chats. Anonymous users create support chats with an access token cookie.
GET/chat/{chatId}arrow_forwardupload
Request body
incognito
booleanIf true, creates an incognito chat that expires and cannot be fetched after expiry
expiresAt
string (date-time)Optional expiration time for the chat. Defaults to 60 minutes from now for incognito chats.
double_arrow
Returns 201
idrequired
string (uuid)The generated UUID for the new chat
userId
string (uuid)The ID of the user who owns this chat
name
stringAuto-generated title from the first user message
createdAtrequired
string (date-time)updatedAtrequired
string (date-time)incognitorequired
booleanWhether this is an incognito chat
grouprequired
booleanWhether this is a group chat
expiresAt
string (date-time)Expiration time for incognito chats
accessToken
string (uuid)Access token for anonymous support chats. Also set as chat_token cookie.
report
Errors