Channels

Create a private, community or support channel. Returns an existing private or support channel unchanged with 200, or a new channel with 201.

post/channels

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
account_id, string

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_user_id, string

Customer ID, prefixed user_. Support channels only; requires support management permission. Omit to open your own support conversation.

icon, object

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.

kind, 'private' | 'community' | 'support' required

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.

name, string

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.

notifications_enabled, boolean

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.

participant_user_ids, string[]

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, string

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_user_id, string

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

Channel required
account, ChannelAccount nullable required
account_id, string nullable required
created_at, string required

Creation time as an ISO 8601 timestamp.

deleted_at, string nullable required

When the channel was deleted or removed from your channel list, as an ISO 8601 timestamp. Null for a live channel.

experience_id, string nullable required
icon, File nullable required
id, string required

Existing public channel ID, preserved across REST and chat clients.

kind, 'private' | 'community' | 'support' required
last_message_at, string nullable required

When the channel last recorded message activity, as an ISO 8601 timestamp. Null when no message activity is recorded.

last_message_id, string nullable required
membership, ChannelMember nullable required
moderation, ChannelModeration nullable required
name, string nullable required
notifications_enabled, boolean required

Whether app notifications are on. Webhooks fire either way.

support, ChannelSupportState nullable required
updated_at, string required

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:manage was added to the endpoint's security scheme bearerAuth

    • info

      the security scope support_chat:create was removed from the endpoint's security scheme bearerAuth

    • info

      the security scope dms:channel:manage was added to the endpoint's security scheme bearerAuth

    1 more change in this revision