This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!
This operation is part of the Customer Chat API portion of the Web Services API.
Send this request periodically to retrieve new chat messages.
By specifying the index parameter, previous messages can be recovered (for example: index=0 will return all messages).
Request URL | /api/v2/chats/{id} |
---|---|
HTTP Method | POST |
Required Features | - |
Required HTTP Headers | ContactCenterId |
Parameter | Value |
---|---|
index | An optional URL parameter used to specify the index of the first entry to return. If not specified, Web Services returns messages that the client has not received yet. |
GET .../api/v2/chats/652492d9-c2d9-44c9-b9ad-0ab7984114bb/messages ContactCenterId: cfe5ad67-ba6d-4340-81f9-bb680ef5d498
{ "messages":[ { "from":{ "nickname":"Chris", "participantId":"1", "type":"Customer" }, "index":1, "type":"ParticipantJoined" }, { "from":{ "nickname":"Chris", "participantId":"1", "type":"Customer" }, "index":2, "text":"Hello?", "type":"Text" }, { "from":{ "nickname":"Kristi Sippola", "participantId":"2", "type":"Agent" }, "index":3, "type":"ParticipantJoined" } ], "statusCode":0 }
Parameter | Description |
---|---|
from | An element contain data about a chat participant. |
index | Denotes the order of the chat activity, with 1 being the first message. |
text | The chat participant's message. |
type | The type of chat notification. Current possible values are:
|