API Overview
Message Callbacks
Status Codes
Overview
Creates a chatroom.
Request
Authentication: Add authentication headers to the request. See Authentication.
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/apigateway/chatrooms/create
Content-Type:
application/json
Request Parameters
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| chat_id | string | Yes | Chatroom ID. Maximum length: 32 characters. | |
| chat_name | string | No | Chatroom name. Maximum length: 45 characters. | |
| is_mute | int | No | Whether global mute is enabled. 0: no; 1: yes. Default: 0. |
Request Example
POST /apigateway/chatrooms/create HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json
{
"chat_id":"chatroom1",
"chat_name":"chatroom1",
"is_mute":0
}
Response Example
{
"code":0,
"msg":"sucess"
}