List
To list the chat messages for a concrete room you need to execute a GET request against the /rooms/:id/chat endpoint.
Use the session_id argument if you want to list messages written in a concrete session. https://api.digitalsamba.com/api/v1/rooms/c39d7c40-7ff7-4faa-b06f-698a639a9523/chat?session_id=16e44502-dae5-41f9-b095-e41bf6ac2d1d
Since potentially there could be thousands of messages, pagination is supported with limit, order and after arguments. Read about pagination to learn the details of it. By default maximum 100 chat messages will be returned in the response.
Only public chat messages are retrievable. Private (1-to-1) chat is not persisted and cannot be retrieved through the API.
Request
Response (200 OK)
The total_count is the total amount of chat messages in the room. It is NOT the amount of chat messages in the current page returned in the data array. In the above example you have 6124 messages in total, but in the data array there will be maximum 100 chat messages (the default limit argument value).
Last updated