Get Starred Messages

Retrieve starred messages. It supports the Pagination parameters.

URLRequires AuthHTTP Method

/api/v1/chat.getStarredMessages

yes

GET

Query Parameters

ArgumentExampleRequiredDescription

roomId

ByehQjC44FwMeiLbX

Required

The room id

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/chat.getStarredMessages?roomId=ByehQjC44FwMeiLbX

Example Result

{
    "messages": [
        {
            "_id": "ePeoiJQ3Qfc4556TW",
            "rid": "GENERAL",
            "msg": "fsdfs",
            "ts": "2019-10-09T19:17:21.883Z",
            "u": {
                "_id": "rocketchat.internal.admin.test",
                "username": "rocketchat.internal.admin.test",
                "name": "RocketChat Internal Admin Test"
            },
            "_updatedAt": "2019-10-09T19:17:25.196Z",
            "mentions": [],
            "channels": [],
            "starred": [
                {
                "_id": "rocketchat.internal.admin.test"
                }
            ]
        }
    ],
    "count": 2,
    "offset": 0,
    "total": 2,
    "success": true
}

Change Log

VersionDescription

2.2.0

Added

Last updated

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