Get Deleted Messages

Retrieves the deleted messages from a specific date.

URLRequires AuthHTTP Method

/api/v1/chat.getDeletedMessages

yes

GET

Query Parameters

ArgumentExampleRequiredDescription

roomId

ByehQjC44FwMeiLbX

Required

The room id

since

2018-12-12T00:11:22.345Z

Required

The date (ISODate) to search deleted messages

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/chat.getDeletedMessages?roomId=ByehQjC44FwMeiLbX&since=2018-12-12T00:11:22.345Z&count=1&offset=2

Example Result

{
    "messages": [
        {
            "_id": "W32fr3LjPxQ2TQH8A"
        },
        {
            "_id": "D43CH4HC2J43C2JB4"
        }
    ],
    "count": 2,
    "offset": 2,
    "total": 91,
    "success": true
}

Change Log

VersionDescription

0.73.0

Added

Last updated

Rocket.Chat versions receive support for six months after release.