Skip to content

Reaction

Bakhtarian edited this page May 14, 2026 · 1 revision

Reaction

A reaction is an emoji response a user adds to a piece of content on Whop — such as a forum post, chat message, or DM.

SDK access

$client->reactions // Matchable\Whop\Resource\ReactionResource

Endpoints

create(array $data): array

HTTP POST reactions
Does Adds a reaction to a piece of content.
Parameters $data — reaction attributes (e.g. target content ID, emoji).
Returns array

list(array $query = []): array

HTTP GET reactions
Does Lists reactions.
Parameters $query — optional filters / pagination.
Returns array

get(string $id): array

HTTP GET reactions/{id}
Does Retrieves a single reaction by ID.
Parameters $id — the reaction ID.
Returns array

delete(string $id): array

HTTP DELETE reactions/{id}
Does Removes a reaction.
Parameters $id — the reaction ID.
Returns array

Example

$reaction = $client->reactions->create([
    'target_id' => 'post_...',
    'emoji' => '🔥',
]);

$client->reactions->delete($reaction['id']);

Reference

Official Whop documentation: https://docs.whop.com

Clone this wiki locally