cURL
curl --request POST \ --url http://localhost:8091/api/servers/{serverID}/channels \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "displayName": "<string>", "topic": "<string>", "isPrivate": false } '
{ "data": { "id": "<string>", "name": "<string>", "displayName": "<string>", "topic": "<string>", "isDm": true, "isPrivate": true, "archived": true, "createdBy": "<string>", "createdAt": "2023-11-07T05:31:56Z", "position": 123, "serverId": "<string>", "memberCount": 123, "groupId": "<string>" } }
Creates a new channel in the server. The creator is automatically added as a member.
Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Server ID
Channel slug name (2-32 chars, lowercased)
2 - 32
Human-readable display name (defaults to name)
Channel topic description
Whether the channel is private (invite-only)
Channel created
Show child attributes