Send Message
Changed onSends 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.
Request
- Base URLhttps://api.whop.com/api/v1
- Auth
- 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
Files to attach to the message.
Generate previews for URLs in content. Mutually exclusive with link_previews.
Public channel ID, or an experience ID for experience chat.
Markdown content. May be empty when the message contains media or a poll.
Also send this message as an email from this email address. Pass the address, like support@example.com, or its ID, prefixed emaddr_.
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.
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.
Explicit URLs for the server to preview.
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
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.
Markdown content. null for a deleted message.
Creation time as an ISO 8601 timestamp.
Deletion time, or null for a live message.
Message ID, prefixed post_. Matches the id sent on create, when one was sent.
Unformatted message text. null when the text is absent or the message is deleted
User ID of the replied-to message's author, prefixed user_. null without a reply in this channel, or when either message is deleted.
Last message change as an ISO 8601 timestamp.
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:managewas added to the endpoint's security schemebearerAuth - info
the security scope
support_chat:message:createwas removed from the endpoint's security schemebearerAuth
- info
- info
the security scope
dms:message:managewas added to the endpoint's security schemebearerAuth
1 more change in this revision
- info