---
# System prepended metadata

title: Room Permission Check API

---

# Room Permission Check API

使用场景：client需要主动判断用户是否有权限发送消息，以使按钮灰显

**Url**:
https://portal0101.sending.network/_api/client/unstable/permission/check

**Method**: POST
**Auth Header**: Authorization: Bearer {access_token}
**request params**:
| Name    | Type   | Description | Required |
| :------ | :----- | :---------- | :------- |
| room_id | string | room id  | true    |
| permission_id | string | pass "room.manage_message"  | true    |

**response params**:
| Name    | Type   | Description | Required |
| :------ | :----- | :---------- | :------- |
| result | bool | whether user has the permission  | true |
| message | string | reason message  | false    |