Skip to main content

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

ParameterData TypeRequiredDescription
chat_idstringYesChatroom ID. Maximum length: 32 characters.
chat_namestringNoChatroom name. Maximum length: 45 characters.
is_muteintNoWhether 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"
}