Fuselage
Get Mentioned Messages
Retrieve mentioned messages. It supports the Offset, Count, and Sort Query Parameters.
URL
Requires Auth
HTTP Method
/api/v1/chat.getMentionedMessages
yes
GET

Query Parameters

Argument
Example
Required
Description
roomId
ByehQjC44FwMeiLbX
Required
The room id

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/chat.getMentionedMessages?roomId=ByehQjC44FwMeiLbX
Copied!

Example Result

1
{
2
"messages": [
3
{
4
"_id": "pN5jb4c9fhsDt8rfY",
5
"rid": "GENERAL",
6
"msg": "@rocketchat.internal.admin.test",
7
"ts": "2019-10-08T17:53:18.112Z",
8
"u": {
9
"_id": "TwHg3x3i6gGHuyFjX",
10
"username": "a",
11
"name": "a"
12
},
13
"_updatedAt": "2019-10-08T17:53:18.184Z",
14
"mentions": [
15
{
16
"_id": "rocketchat.internal.admin.test",
17
"name": "RocketChat Internal Admin Test",
18
"username": "rocketchat.internal.admin.test"
19
}
20
],
21
"channels": []
22
},
23
],
24
"count": 2,
25
"offset": 0,
26
"total": 2,
27
"success": true
28
}
Copied!

Change Log

Version
Description
2.2.0
Added
Export as PDF
Copy link
Edit on GitHub