Skip to main content
POST
/
:projectId
/
api
/
v7
/
entities
/
:entityId
/
reactions
Add Entity Reaction
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/entities/:entityId/reactions \
  --header 'Content-Type: application/json' \
  --data '
{
  "reactionType": "<string>",
  "userId": "<string>"
}
'
Adds a reaction of the specified type to an entity. If the user already has a reaction on this entity, it is replaced with the new type. The entity’s reactionCounts map is updated accordingly. Authentication required.

Path Parameters

entityId
string
required
The UUID of the entity to react to.

Body Parameters

reactionType
string
required
The type of reaction to add. One of: upvote, downvote, like, love, wow, sad, angry, funny.
userId
string
Override which user the reaction is attributed to. Service or master key only. Useful for backfilling reactions from an external system.

Response

Returns the updated Entity object with the new reactionCounts map.
The entity owner receives an in-app notification when someone reacts to their entity. Milestone notifications are also sent at reaction count thresholds (e.g., 10, 50, 100 reactions).

Error Responses

{ "error": "Missing user ID", "code": "entity/missing-user-id" }
Returned when no user is authenticated and no userId override is provided.
{ "error": "Entity not found.", "code": "entity/not-found" }