Messages

Lists messages in a channel. Existing public message and channel IDs are preserved. For reconnect synchronization, use inclusive updated_after with include_deleted=true; results use ascending change order. Follow the returned cursors and replace cached messages by ID, including when updated_at is unchanged. The returned updated_at is the stored message update time; reaction changes only affect synchronization ordering. Deleted entries contain identity and timestamps with their content redacted. To jump into history, specify channel_id and one around anchor; results use ascending creation-time order. For older messages in chronological order, use before_message_id with last and direction=asc; for newer messages, use after_message_id with first and direction=asc. Do not supply order or direction with updated_after or an around anchor. Keep message-ID filters when continuing with cursors. For around queries, omit the around anchor and continue with direction=asc.

get/messages

Request

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

Query parameters

channel_id, string required

Filter by public channel ID. An experience ID is also accepted for experience chat.

replying_to_message_id, string

Return replies to this message.

pinned, boolean

Filter by message pin state.

include_deleted, boolean

Include redacted deletion entries for cache synchronization.

include_replying_to_message, boolean

Include the full replied-to message. Nested replies are not included.

created_after, string

Return messages created strictly after this ISO 8601 timestamp.

created_before, string

Return messages created strictly before this ISO 8601 timestamp.

updated_after, string

Return messages changed at or after this ISO 8601 timestamp in ascending change order. Cannot be combined with history filters, around anchors, order, or direction.

before_message_id, string

Filter messages strictly before this message in channel_id by creation time and message ID. Deleted anchors are accepted; missing or other-channel IDs return 404. Cannot be combined with around anchors or updated_after.

after_message_id, string

Filter messages strictly after this message in channel_id by creation time and message ID. Deleted anchors are accepted; missing or other-channel IDs return 404. Cannot be combined with around anchors or updated_after.

around_message_id, string

Center the first page around this live message in the selected channel.

around_timestamp, string

Center the first page around this ISO 8601 timestamp in the selected channel.

order, 'created_at' | 'updated_at'

History sort field. Defaults to created_at. Cannot be supplied with updated_after or around anchors.

direction, 'asc' | 'desc'

History sort direction. Defaults to desc. Cannot be supplied with updated_after or around anchors.

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.

Headers

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

Pins the request to a dated API version.

Response

messages listed

object required
data, ChatMessage[] required
page_info, object required

Example response

{
  "data": [
    {
      "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"
    }
  ],
  "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