Retrieves the information about the room.
Users with the view-room-administration permission can also retrieve public and private rooms they are not a member of, except private rooms managed by ABAC. Users without this permission who request a private room they are not a member of receive a 400 error with not-allowed.
The endpoint ignores the removed fields and query parameters and returns the full room object.
Changelog
| Version | Description |
|---|---|
| 9.0.0 | Removed the fields parameter. Users with view-room-administration can read rooms they are not a member of, except ABAC-managed rooms. |
| 9.0.0 | Added the classificationBanner and abacRequiredAttributes response fields. |
| 0.72.0 | Added |
The userId of the authenticated user.
The authToken of the authenticated user.
The room ID. It is required if the roomName is not provided.
The room name. It is required if the roomId is not provided.
OK
The response includes the following objects:
parent: Represents the parent of a room. For discussions, this is the room where the discussion was created, identified byprid. For rooms inside a team, the parent will be the team's main room, identified byteam.roomId. For other rooms, this property is undefined.team: Represents the team a room is part of. For rooms inside a team, this is the team identified by theteamIdproperty. For everything else, this is undefined.classificationBanner: The ABAC classification banner that applies to the room, returned at the top level next toroom. Returned only when the workspace has the ABAC license, ABAC and classification banners are enabled, and a configured banner applies. An ABAC-managed room gets the banner built from its attributes. Rooms that are not ABAC managed, including public and private channels, DMs and discussions, get a banner only from the optional non-ABAC banner list (nonAbacBanner) in the banner configuration. Omnichannel rooms never get a banner. The response holds only the resolved banner, never the banner configuration.abacRequiredAttributes: The attribute keys that every ABAC room must carry. Returned only when ABAC is enabled and Enforce ABAC across all workspace rooms is on. The list is empty when no attribute is required.
{
"room": {
"_id": "66ed2dba40141d95f32c292b",
"fname": "new-channel",
"_updatedAt": "2024-09-20T12:29:08.284Z",
"customFields": {},
"topic": "",
"broadcast": false,
"encrypted": false,
"name": "new-channel",
"t": "p",
"msgs": 3,
"usersCount": 2,
"u": {
"_id": "C38WSSzrGd2NCjzqJ",
"username": "test.cat",
"name": "test.cat"
},
"ts": "2024-09-20T08:09:30.417Z",
"ro": false,
"teamId": "66c82d78237405fc05fc1ef1",
"default": false,
"sysMes": true,
"lastMessage": {
"_id": "xZhJfE4rmaosjHZCe",
"rid": "66ed2dba40141d95f32c292b",
"msg": "testing",
"alias": null,
"ts": "2024-09-20T12:27:53.356Z",
"u": {
"_id": "C38WSSzrGd2NCjzqJ",
"username": "test.cat",
"name": "test.cat"
},
"_updatedAt": "2024-09-20T12:27:53.397Z",
"urls": [],
"mentions": [],
"channels": [],
"md": [
{
"type": "PARAGRAPH",
"value": [
{
"type": "PLAIN_TEXT",
"value": "testing"
}
]
}
]
},
"lm": "2024-09-20T12:27:53.356Z"
},
"team": {
"_id": "66c82d78237405fc05fc1ef1",
"name": "test-team",
"type": 0,
"roomId": "66c82d78237405fc05fc1eef"
},
"parent": {
"_id": "66c82d78237405fc05fc1eef",
"fname": "test-team",
"name": "test-team",
"t": "c"
},
"success": true
}{
"room": {
"_id": "66ed2dba40141d95f32c292c",
"fname": "locked-room",
"_updatedAt": "2026-10-28T14:44:10.512Z",
"name": "locked-room",
"t": "p",
"msgs": 0,
"usersCount": 1,
"u": {
"_id": "C38WSSzrGd2NCjzqJ",
"username": "test.cat",
"name": "test.cat"
},
"ts": "2026-10-28T14:40:02.118Z",
"ro": false,
"default": false,
"sysMes": true
},
"abacRequiredAttributes": [
"clearance"
],
"success": true
}{
"room": {
"_id": "66ed2dba40141d95f32c292d",
"fname": "navigation-control",
"_updatedAt": "2026-10-28T18:20:41.208Z",
"name": "navigation-control",
"t": "p",
"msgs": 0,
"usersCount": 1,
"u": {
"_id": "C38WSSzrGd2NCjzqJ",
"username": "test.cat",
"name": "test.cat"
},
"ts": "2026-10-28T18:20:40.917Z",
"ro": false,
"default": false,
"sysMes": true
},
"classificationBanner": {
"style": "classic",
"uppercase": false,
"monospace": false,
"text": "NAV CONTROL",
"segments": [
{
"attrId": "dept",
"text": "NAV CONTROL"
}
],
"backgroundColor": "#007a33",
"color": "#FFFFFF"
},
"success": true
}{
"room": {
"_id": "66ed2dba40141d95f32c292e",
"fname": "general-updates",
"_updatedAt": "2026-10-28T18:05:12.330Z",
"name": "general-updates",
"t": "c",
"msgs": 0,
"usersCount": 1,
"u": {
"_id": "C38WSSzrGd2NCjzqJ",
"username": "test.cat"
},
"ts": "2026-10-28T18:05:12.104Z",
"ro": false,
"default": false,
"sysMes": true
},
"classificationBanner": {
"style": "classic",
"uppercase": false,
"monospace": false,
"text": "UNCLASSIFIED",
"segments": [],
"backgroundColor": "#1d74f5",
"color": "#FFFFFF"
},
"success": true
}The classification banner that applies to the room. Present only when a configured banner applies. Contains the resolved banner only, not the banner configuration.
The banner text shown in the room.
One entry per attribute shown in the banner of an ABAC-managed room. Empty for a banner from the non-ABAC banner list.
The id of the attribute entry in the banner configuration.
The banner background color, in #RRGGBB format.
The banner text color, in #RRGGBB format.
Attribute keys required in every ABAC room. Present only while ABAC enforcement across all workspace rooms is on.
Bad Request
{
"success": false,
"error": "The parameter \"roomId\" or \"roomName\" is required [error-roomid-param-not-provided]",
"errorType": "error-roomid-param-not-provided"
}{
"success": false,
"error": "The required \"roomId\" or \"roomName\" param provided does not match any channel [error-room-not-found]",
"errorType": "error-room-not-found"
}{
"success": false,
"error": "not-allowed",
"errorType": "Not Allowed"
}{
"success": false,
"error": "not-allowed",
"errorType": "Not Allowed"
}Unauthorized
{
"success": false,
"error": "You must be logged in to do this."
}