Messages

Vote on Message

Changed on

Vote for one option on a message poll. Each user can vote once per poll.

post/messages/{id}/vote

Request

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

Path parameters

id, string required

The ID of the message containing the poll.

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

The option ID from the poll, not its display text.

Example request

{
  "poll_option_id": "2"
}

Response

updated poll-containing resource

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: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