Skip to main content
POST
Creates a new channel. The type of channel determines who can create it and how it behaves:
  • dm - Direct message channel between users
  • group - Private group channel with invited members
  • standard - Public or restricted channel (admin only)

Authentication

Requires a valid user session. Admin role required for creating standard channels.

Request Body

string
Channel type: dm, group, or standard. Only admins can create standard channels.
string
required
Channel name (can be empty for DM channels)
string
Channel description
boolean
Whether the channel is private (for group channels)
array
Array of user IDs to invite to the channel
array
Array of group IDs to grant access to the channel
array
Access control grants for the channel
object
Additional channel data
object
Channel metadata

Response

Returns the created channel object.
string
required
Unique channel identifier
string
required
ID of the user who created the channel
string
Channel type
string
required
Channel name
string
Channel description
boolean
Whether the channel is private
array
Access control grants
integer
required
Creation timestamp (epoch time in nanoseconds)
integer
required
Last update timestamp (epoch time in nanoseconds)

Notes

  • For DM channels, if a channel already exists between the specified users, the existing channel is returned instead of creating a duplicate
  • The creator is automatically added as a member of the channel with manager role
  • Only admins can create standard type channels
  • Members are automatically added to the channel’s socket room for real-time updates