Create Channel
Changed onCreate a private, community or support channel. Returns an existing private or support channel unchanged with 200, or a new channel with 201.
Request
- Base URLhttps://api.whop.com/api/v1
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Owning account ID, prefixed biz_. Accepted for all channel kinds. Required for community and support channels unless supplied by the credential's account context.
Customer ID, prefixed user_. Support channels only; requires support management permission. Omit to open your own support conversation.
Channel icon as a file reference, for community channels and private channels with two or more participant IDs. Image files only. Group icons can be up to 5 MB. For community channels it sets the experience logo. Used only when a channel is created.
Channel kind. private is a one-to-one or group conversation, community creates a Chat experience on the account, and support opens a conversation between the account and a customer.
Channel display name, accepted for all channel kinds. Used only when a channel is created. For community channels, names the new Chat experience; defaults to the Chat app's name.
Whether app notifications are on for any channel kind. Webhooks fire either way. Defaults to true. Used only when a channel is created; change an existing channel with PATCH /channels/:id.
Other participant IDs, prefixed user_, excluding the sender. Required for private channels and accepted only for them. One ID creates a one-to-one conversation; more create a group.
Product ID, prefixed prod_, to attach the new community channel to. Accepted only for community channels. Must belong to the owning account and requires the experience:attach permission on it. Omit to leave the channel unattached.
Sender ID, prefixed user_. Private channels only. Required for account API keys; omit when authenticating as a user. Requires channel management permission on the account.
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx",
"kind": "private",
"participant_user_ids": [
"user_xxxxxxxxxxxxxx"
]
}Response
existing channel returned
Creation time as an ISO 8601 timestamp.
When the channel was deleted or removed from your channel list, as an ISO 8601 timestamp. Null for a live channel.
Existing public channel ID, preserved across REST and chat clients.
When the channel last recorded message activity, as an ISO 8601 timestamp. Null when no message activity is recorded.
Whether app notifications are on. Webhooks fire either way.
Last channel change as an ISO 8601 timestamp.
Example response
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"title": "Shine Time Auto Detailing"
},
"account_id": "biz_xxxxxxxxxxxxxx",
"created_at": "2026-01-01T12:00:00.000Z",
"icon": {
"content_type": "application/pdf",
"created_at": "2026-01-01T12:00:00.000Z",
"filename": "evidence.pdf",
"id": "file_xxxxxxxxxxxxxx",
"multipart_chunk_size": 5242880,
"multipart_upload_id": "upload-id",
"multipart_upload_urls": [
{
"part_number": 1,
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/application.pdf"
}
],
"object": "file",
"size": 9670,
"upload_headers": {},
"upload_status": "pending",
"upload_url": "https://whop-assets-example.s3.amazonaws.com/uploads/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/application.pdf",
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/audio/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"visibility": "private"
},
"id": "feed_xxxxxxxxxxxxxxxxxxxxxx",
"kind": "private",
"last_message_at": "2026-01-01T12:00:00.000Z",
"last_message_id": "post_xxxxxxxxxxxxxxxxxxxxxx",
"membership": {
"channel_id": "feed_xxxxxxxxxxxxxxxxxxxxxx",
"created_at": "2026-01-01T12:00:00.000Z",
"id": "memb_1_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"inbox_status": "accepted",
"last_viewed_at": "2026-01-01T12:00:00.000Z",
"notification_preference": "all",
"updated_at": "2026-01-01T12:00:00.000Z",
"user": {
"badges": [
{
"type": "verified_partner"
}
],
"id": "user_xxxxxxxxxxxxxx",
"name": "Dana Whitfield",
"profile_picture": {
"url": "https://ui-avatars.com/api/"
},
"username": "danawhitfield"
},
"user_id": "user_xxxxxxxxxxxxxx"
},
"moderation": {
"who_can_post": "everyone",
"who_can_react": "everyone"
},
"name": "Renamed",
"notifications_enabled": true,
"support": {
"customer_user_id": "user_xxxxxxxxxxxxxx",
"last_message_by": "customer",
"resolved_at": "2026-01-01T12:00:00.000Z",
"status": "resolved"
},
"updated_at": "2026-01-01T12:00:00.000Z"
}Changes
- info
the security scope
dms:channel:managewas added to the endpoint's security schemebearerAuth - info
the security scope
support_chat:createwas removed from the endpoint's security schemebearerAuth
- info
- info
the security scope
dms:channel:managewas added to the endpoint's security schemebearerAuth
1 more change in this revision
- info