Overview
Create new chat channels, supporting both personal and group channel creation.Request Body
Required Parameters
Channel ID, must be unique
Channel type
1- Personal channel2- Group channel
Optional Parameters
Whether to mute
0- Allow speaking1- Mute all members
Whether to disband channel
1- Disband channel (irreversible)
Whether to prohibit sending messages (0=not prohibited, 1=prohibited). When prohibited, all members in the channel cannot send messages. Personal channels can receive messages but cannot send messages.
Whether to allow strangers to send messages (0=not allowed, 1=allowed) (this configuration currently only supports personal channels)
Personal channel: If AllowStranger is 1, strangers can send messages to the current user. For example: if the current account needs to accept stranger messages, channel_id is the current user’s uid
Response Fields
Operation status, returns
"ok" on successStatus Codes
| Status Code | Description |
|---|---|
| 200 | Channel created successfully |
| 400 | Request parameter error |
| 409 | Channel ID already exists |
| 500 | Internal server error |
Best Practices
- Channel ID Uniqueness: Ensure channel ID is unique in the system
- Member Management: Properly set initial subscriber list
- Permission Control: Set mute status as needed

