Chats

List chat messages

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

Request

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

Path parameters

chatstring uuid required

Chat ID

Query parameters

before_idinteger

Return messages with id < before_id

after_idinteger

Return messages with id > after_id

limitinteger

Page size, 1 to 200. Defaults to 50.

Response

OK

has_moreboolean
turn_start_idinteger

TurnStartID is the ID of the user prompt that starts the turn containing the page's oldest message. Omitted for after_id-only polls and when no prompt is at or before that message.

Changes