latestOpenAPI 3.0.02026-08-19219210532.7 KB

bd5a5f406bca

chat

Record feedback on a chat

patch/api/v1/chats/{id}

Path parameters

idstring uuid required

Chat id

Request body

feedbackRatingboolean nullable

User thumbs up/down

feedbackTextstring nullable

User free-text feedback

Response

callIdstring nullable required

Provider call id, for voice chats

createdAtstring date-time required

Creation timestamp

externalSessionIdstring nullable required

The originating provider's conversation id, when the chat has one

feedbackRatingboolean nullable required

User thumbs up/down

feedbackTextstring nullable required

User free-text feedback

idstring uuid required

Chat id

lastUpdatedAtstring date-time required

Last update timestamp

organizationIdstring uuid required

Organization id

source'ai-sdk' | 'elevenlabs' | 'whatsapp' required

System that produced the chat

status'pending' | 'active' | 'completed' | 'connected' required

Chat lifecycle status

titlestring nullable required

Chat title

type'web_call' | 'text_chat' | 'phone_call' | 'whatsapp' required

Chat channel type

userIdstring uuid required

Owning user id