Channels

List channels you can access.

get/channels

Request

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

Query parameters

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

include_total_count, boolean

Set to true to return the number of matching results in page_info.total_count. Send first=0 as well to return the count without any results.

kind, string[] required

Channel kinds to return. Combine private and support, or pass community alone. private includes one-to-one and group direct messages.

support_role, 'customer' | 'staff'

Which support channels to return. customer returns support chats you opened, including when account_id is set. staff returns the support inbox of the account in account_id, and requires permission to read that account's support chats. Applies only to support channels.

account_id, string

Filter channels by their owning account, prefixed biz_. Applies to private, community and support channels.

query, string

Return only channels whose name contains this text. Private and support channels also match a member's username or name. % and _ match literally.

status, 'unresolved' | 'resolved'

Return only support channels with this resolution. Requires kind to be support alone.

awaiting_reply, boolean

true returns unresolved support channels whose last message came from the customer; false returns the other support channels. Other channel kinds are returned either way.

unread, boolean

true returns channels with messages you have not read; false returns the rest. Requires authenticating as a user.

pinned, boolean

true returns private and support channels you have pinned; false returns those you have not. Requires authenticating as a user.

viewed, boolean

true returns community channels you have opened; false returns those you never have. Requires authenticating as a user.

requested, boolean

true returns your pending direct-message requests; false returns your accepted private channels. Requires private in kind and authenticating as a user. With support also in kind, false keeps support channels and true returns only pending requests.

order, 'created_at' | 'last_message_at' | 'last_viewed_at'

The field to sort by. Defaults to last_viewed_at for community channels and last_message_at for private and support channels. Ties sort in a stable order. Cannot be supplied with updated_after.

include_members, 'current' | 'current_and_deleted' | 'null' nullable

Members to include for private and support channels, with their public profiles. current includes current members. current_and_deleted also includes former members, marked with deleted_at. Omit or pass null to leave out members.

include_last_message, boolean

Include the most recent message you can see, with its author.

direction, 'asc' | 'desc'

The sort direction. Defaults to desc. Cannot be supplied with updated_after.

include_deleted, boolean

Include redacted entries for deleted channels and your removed memberships. Use deleted_at to remove these channels from your cache.

updated_after, string

Return channels where the channel or your membership changed at or after this ISO 8601 timestamp. Cannot be more than one hour old, including on subsequent pages. For older changes, reload channels without updated_after. Results use ascending synchronized_at order. Cannot be combined with order, direction, query, status, awaiting_reply, unread, pinned, viewed, requested, created_before, or created_after.

created_before, string

Return only channels created before this ISO 8601 timestamp.

created_after, string

Return only channels created after this ISO 8601 timestamp.

Headers

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

Pins the request to a dated API version.

Response

operation completed

object required
data, ChannelListItem[] required
page_info, object required

Example response

{
  "data": [
    {
      "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",
      "experience_id": "exp_xxxxxxxxxxxxxx",
      "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": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "kind": "community",
      "last_message": {
        "attachments": [
          {
            "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"
          }
        ],
        "author": {
          "badges": [
            {
              "type": "verified_partner"
            }
          ],
          "id": "user_xxxxxxxxxxxxxx",
          "name": "Dana Whitfield",
          "profile_picture": {
            "url": "https://ui-avatars.com/api/"
          },
          "username": "danawhitfield"
        },
        "author_user_id": "user_xxxxxxxxxxxxxx",
        "channel_id": "feed_xxxxxxxxxxxxxxxxxxxxxx",
        "content": "Which detailing service should we demonstrate next?",
        "created_at": "2026-01-01T12:00:00.000Z",
        "custom_author": {
          "profile_picture": {
            "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"
          }
        },
        "external_message": {
          "object": "email_message",
          "status": "received"
        },
        "id": "post_xxxxxxxxxxxxxxxxxxxxxx",
        "message_type": "regular",
        "plain_content": "Which detailing service should we demonstrate next?",
        "poll": {
          "options": [
            {
              "id": "1",
              "text": "Ceramic coating"
            }
          ]
        },
        "reaction_counts": [
          {
            "kind": "emoji",
            "reacted": true,
            "total_score": 1,
            "user_count": 1,
            "value": "❤️"
          }
        ],
        "updated_at": "2026-01-01T12:00:00.000Z"
      },
      "last_message_at": "2026-01-01T12:00:00.000Z",
      "last_message_id": "post_xxxxxxxxxxxxxxxxxxxxxx",
      "members": [
        {
          "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"
        }
      ],
      "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": "Name1",
      "notifications_enabled": true,
      "support": {
        "customer_user_id": "user_xxxxxxxxxxxxxx",
        "last_message_by": "customer",
        "resolved_at": "2026-01-01T12:00:00.000Z",
        "status": "resolved"
      },
      "synchronized_at": "2026-01-01T12:00:00.000Z",
      "updated_at": "2026-01-01T12:00:00.000Z"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • info

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

    • info

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

    • info

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

    1 more change in this revision