Get Thread Messages
Query Parameters
Example Call
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
-H "Content-type:application/json" \
http://localhost:3000/api/v1/chat.getThreadMessages?tmid=gcGai9bRREqokjyPc
Example Result
{
"messages": [
{
"_id": "GfhiiJjcjKFyYMuMY",
"rid": "GENERAL",
"tmid": "gcGai9bRREqokjyPc",
"tshow": true,
"msg": "This is a test reply, that is also sent to the channel!",
"ts": "2019-04-08T13:20:22.238Z",
"u": {
"_id": "p4a8YxvLQEHmiBKTS",
"username": "marcos.defendi",
"name": "Marcos Defendi"
},
"_updatedAt": "2019-04-08T13:20:22.265Z",
"urls": [],
"mentions": [],
"channels": [],
"md": [
{
"type": "PARAGRAPH",
"value": [
{
"type": "PLAIN_TEXT",
"value": "This is a test reply, that is also sent to the channel!"
}
]
}
]
},
{
"_id": "DvkcMiup4twAouPYf",
"rid": "GENERAL",
"tmid": "gcGai9bRREqokjyPc",
"msg": "This is also a test reply, not sent to channel.",
"ts": "2019-04-08T13:25:25.228Z",
"u": {
"_id": "p4a8YxvLQEHmiBKTS",
"username": "marcos.defendi",
"name": "Marcos Defendi"
},
"_updatedAt": "2019-04-08T13:25:25.258Z",
"urls": [],
"mentions": [],
"channels": [],
"md": [
{
"type": "PARAGRAPH",
"value": [
{
"type": "PLAIN_TEXT",
"value": "This is also a test reply, not sent to channel."
}
]
}
]
}
}
],
"count": 2,
"offset": 0,
"total": 2,
"success": true
}
Change Log
Last updated