Chat9
APIWidget

Widget History

Return message history for a widget session (public, no auth).

GET
/widget/history
/widget/history

Query Parameters

bot_id
Required
Bot Id

Bot public ID

session_id
Required
Session Id

Chat session UUID

curl -X GET "https://api.getchat9.live/widget/history?bot_id=string&session_id=string"

Successful Response

{
  "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  "messages": [
    {
      "role": "string",
      "content": "string"
    }
  ],
  "chat_ended": true,
  "ticket_number": "string",
  "boundary_indices": [],
  "conversation_rotated": false
}