Skip to main content
GET
/
reactions
/
{id}
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});

const reaction = await client.reactions.retrieve('reac_xxxxxxxxxxxxxxxxxxxxxx');

console.log(reaction.id);
{
  "id": "reac_xxxxxxxxxxxxxxxxxxxxxx",
  "resource_id": "<string>",
  "user": {
    "id": "user_xxxxxxxxxxxxx",
    "username": "johndoe42",
    "name": "John Doe"
  },
  "emoji": ":heart:"
}

Authorizations

Authorization
string
header
required

A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************

Path Parameters

id
string
required

The unique identifier of the reaction to retrieve.

Example:

"reac_xxxxxxxxxxxxxxxxxxxxxx"

Response

A successful response

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

id
string
required

The unique identifier for the entity

Example:

"reac_xxxxxxxxxxxxxxxxxxxxxx"

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.

emoji
string | null
required

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

Example:

":heart:"