Get Discussions of A Room

URLRequires AuthHTTP Method

/api/v1/chat.getDiscussions

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.getDiscussions?roomId=ByehQjC44FwMeiLbX

Example Result

{
  "messages": [
    {
      "_id": "WSxSpajNjbNZDkGmq",
      "t": "discussion-created",
      "rid": "GENERAL",
      "ts": "2019-12-03T17:53:44.600Z",
      "msg": "d",
      "u": {
        "_id": "CaevAPDbXN252kyXa",
        "username": "marcos.defendi"
      },
      "groupable": false,
      "drid": "iQyCSjH2kixh46R7v",
      "attachments": [],
      "_updatedAt": "2019-12-03T17:53:44.600Z"
    },
  ],
  "count": 1,
  "offset": 0,
  "total": 4,
  "success": true
}

Change Log

VersionDescription

2.4.0

Added

Last updated

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