Chats

Stream chat events via WebSockets

Changed on
get/api/v2/chats/{chat}/stream

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/chats/{chat}/stream
  • Auth
    API key in header Coder-Session-Token

Path parameters

chatstring uuid required

Chat ID

Query parameters

after_idinteger

Skip snapshot messages with id at or before this cursor

Response

OK

chat_idstring uuid
type'message_part' | 'message' | 'status' | 'error' | 'queue_update' | 'retry' | 'action_required' | 'preview_reset' | 'history_reset'

Changes