Chatwee

room/entries

Gets all messages from a given room.


https://chatwee-api.com/v2/room/entries
    

GET https://chatwee-api.com/v2/room/entries?chatId=57c493789da1fbc017000029&clientKey=507f191e810c19729de860ea&roomId=582b8fe76b0c2d22587336f4
    

{
    "entries": [
        {
            "id": "60056e7292d3f647931c3f06",
            "sender": {
                "id": null,
                "avatar": null,
                "login": ""
            },
            "senderId": "60056e4792d3f647931c3eed",
            "senderLogin": "guest_Evan",
            "senderAvatar": null,
            "senderRoles": [],
            "data": {
                "text": "Hi!"
            },
            "dataType": "MESSAGE",
            "time": "2021-01-18T11:18:10.832Z",
            "relativeTime": 189,
            "isAccepted": true,
            "isShadowBanned": false,
            "senderColor": "ff6633"
        }
    ],
    "moreEntriesExist": false
}
    
Name Description Type Mandatory Remarks
chatId unique chat ID string yes available in 'INTEGRATION' section of the Chatwee Dashboard
clientKey client secret string yes available in 'INTEGRATION' section of the Chatwee Dashboard
roomId room ID string yes obtained with /room/create method
limit limits the number of entries fetched number no Positive number. Used along with skip parameter can get you subsequent chunks of entries.
skip number of preceding entries to be skipped number no Positive number. Best used in pair with the limit parameter.