Reactions

Create reaction

Changed on

Add an emoji reaction or poll vote to a message or forum post. In forums, the reaction is always a like.

Required permissions (one of):

  • chat:read
  • dms:read
  • forum:read
  • livestream:chat:read
  • support_chat:read
post/reactions

Request

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

Request body

object required

Parameters for CreateReaction

emoji, string nullable

The emoji to react with, in shortcode or unicode format. For example, ':heart:' or a unicode emoji. Ignored in forums where reactions are always likes.

poll_option_id, string nullable

The unique identifier of a poll option to vote for. Only valid when the target message or post contains a poll.

resource_id, string required

The unique identifier of the message or forum post to react to.

Response

A successful response

Reaction required

A single reaction left by a user on a feed post, such as a like or emoji.

emoji, string nullable required

The emoji used for this reaction in shortcode format. Null if the reaction type is not emoji.

id, string required

The unique identifier for the entity

resource_id, string required

The unique identifier of the post this reaction was left on.

user, object required

The user who left this reaction on the post.

Example response

{
  "emoji": ":heart:",
  "id": "reac_xxxxxxxxxxxxxxxxxxxxxx",
  "user": {
    "id": "user_xxxxxxxxxxxxx",
    "name": "Marcus Webb",
    "username": "marcuswebb"
  }
}

Changes

    • info

      the security scope chat: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 chat:read was added to the endpoint's security scheme bearerAuth

    1 more change in this revision