Messages

Sends a Markdown message as the authenticated user or app agent. Channel access, posting restrictions, moderation, and delivery follow the existing chat services. Use Idempotency-Key to safely retry a send. The response and realtime message use the same message ID. Custom author presentation and embeds are read-only. With email_address, the message's text is also emailed to the customer of a support chat with that address's account, if they're a member with an email address. The email answers the email behind replying_to_message_id, or else continues the chat's latest email. The message is posted even when it isn't emailed. Files, GIFs and polls stay in the chat and are left out of the email, and a message with no text isn't emailed. Sending needs member:email:read, and the address's owner or, for a shared address, email:read and email:send.

post/messages

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    • 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
attachments, object[]

Files to attach to the message.

auto_detect_links, boolean

Generate previews for URLs in content. Mutually exclusive with link_previews.

channel_id, string required

Public channel ID, or an experience ID for experience chat.

content, string required

Markdown content. May be empty when the message contains media or a poll.

email_address, string

Also send this message as an email from this email address. Pass the address, like support@example.com, or its ID, prefixed emaddr_.

gifs, object[]

Up to 10 GIFs to attach. URLs must use HTTPS on static.klipy.com, static1.klipy.com, or static2.klipy.com. Omit to preserve on edit; an empty list clears them.

id, string

Optional, for clients that show a message before the server confirms it. Use post_ followed by 22 Base58 characters. Omit to generate an ID. Reuse the same ID and Idempotency-Key when retrying a send.

link_previews, object[]

Explicit URLs for the server to preview.

poll, object
replying_to_message_id, string

A live message in the same channel to reply to.

Example request

{
  "channel_id": "feed_xxxxxxxxxxxxxxxxxxxxxx",
  "content": "Your **ceramic coating** is booked for Tuesday."
}

Response

message sent

ChatMessage required
attachments, File[] required
author, UserSummary nullable required
author_is_team_member, boolean required

true if the author is a team member of the account that owns this community channel. false for partners, private and support channels, and deleted messages.

author_user_id, string nullable required
automation, MessageAutomation nullable required
channel_id, string required
content, string nullable required

Markdown content. null for a deleted message.

created_at, string required

Creation time as an ISO 8601 timestamp.

custom_author, MessageCustomAuthor nullable required
deleted_at, string nullable required

Deletion time, or null for a live message.

edited, boolean required
embeds, Embed[] required
external_message, ExternalMessageEmail nullable required
gifs, Gif[] required
id, string required

Message ID, prefixed post_. Matches the id sent on create, when one was sent.

link_previews, MessageLinkPreview[] required
mentioned_user_ids, string[] required
message_type, 'regular' | 'system' | 'automated' required
pinned, boolean required
plain_content, string nullable required

Unformatted message text. null when the text is absent or the message is deleted

poll, ChatMessagePoll nullable required
reaction_counts, MessageReactionCount[] required
replying_to_message, ChatMessage circular
replying_to_message_id, string nullable required
replying_to_user_id, string nullable required

User ID of the replied-to message's author, prefixed user_. null without a reply in this channel, or when either message is deleted.

updated_at, string required

Last message change as an ISO 8601 timestamp.

view_count, integer nullable required

Experience view count. null for DM-backed channels.

Example response

{
  "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"
}

Changes

    • info

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

    • info

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

    • info

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

    1 more change in this revision