Skip to main content

Starting March 27, 2026, RC is rebranded as Nexconn. Existing RC SDK customers can continue using this documentation. New customers should refer to the Nexconn developer documentation.

Create Chatroom (Deprecated)

After creating a chatroom via the Server API, if no new messages are sent or no users join within 1 hour, the chatroom will be automatically destroyed.

tip

Joining a chatroom is typically initiated directly by the user from the client side.

Request Method

POST: https://Data Center Domain/chatroom/create.json

Rate Limit: 100 requests per second

Signature Rule: All server API requests must undergo rule validation. For details, refer to API Request Signature.

Body Parameters

The HTTP request body data format is application/x-www-form-urlencoded, supporting the following HTTP form parameters:

ParameterTypeRequiredDescription
chatroom[id]=nameStringYesThe ID of the new chatroom, supporting a combination of uppercase and lowercase letters and numbers, with a maximum length of 64 bytes. name is the name of the chatroom. Multiple chatrooms can be created at once, up to 100.

Request Example

POST /chatroom/create.json HTTP/1.1
Host: api.rong-api.com
App-Key: uwd1c0sxdlx2
Timestamp: 1408710653491
Nonce: 14314
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/x-www-form-urlencoded

chatroom[10001]=name1&chatroom[10002]=name2&chatroom[10003]=name3

Response

The HTTP response body contains a JSON object with the following structure:

Return ValueTypeDescription
codeNumberReturn code, 200 indicates success.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"code":200}