List
To list the chat messages for a concrete room you need to execute a GET request against the /rooms/:id/chat endpoint.
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.
Request
curl --request GET \
--url https://api.digitalsamba.com/api/v1/rooms/c39d7c40-7ff7-4faa-b06f-698a639a9523/chat \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY
Response (200 OK)
{
"total_count": 6124,
"data": [
{
"id": "87664473-9064-4179-935e-ce78af687bef",
"message": "Hello!",
"participant_id": "77836281-486c-4d49-ba07-c66c87452256",
"external_participant_id": "ABCDEF",
"participant_name": "Cillian Doe",
"created_at": "2024-03-13T14:10:22Z"
},
{
"id": "eccf427e-9fa3-481d-912b-f35c15473a46",
"message": "dfdsf",
"participant_id": "722d9849-e94f-4cba-903a-9e8e61d8d861",
"participant_name": "John Smith",
"created_at": "2024-03-09T11:32:30Z"
},
...............98 more chat messages...............
]
}
Last updated