Messages

Get all messages for a webchat session (no auth)

GET
/api/messages/webchat/{webchatId}

Public endpoint used by the webchat widget to bootstrap the conversation history for a session. Returns sender metadata only when showSenderNameInWebchat is enabled on the webchat config.

Path Parameters

webchatId*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/messages/webchat/string"
{  "messages": [    {      "id": "67c0a0b0c0d0e0f0a0b0c0d0",      "text": "Hi! How can we help?",      "sender": "bot",      "timestamp": 1747571400000,      "attachments": [],      "senderInfo": {        "type": "AI",        "name": "Tether AI"      }    },    {      "id": "67c0a0b0c0d0e0f0a0b0c0d1",      "text": "I need a refund.",      "sender": "user",      "timestamp": 1747571410000    }  ]}