Skip to main content
POST
/
:projectId
/
api
/
v7
/
conversations
/
:conversationId
/
messages
/
:messageId
/
reactions
Toggle Message Reaction
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/reactions \
  --header 'Content-Type: application/json' \
  --data '
{
  "emoji": "<string>"
}
'
{
  "reactionCounts": {},
  "userReactions": [
    "<string>"
  ],
  "delta": 123
}
Toggles an emoji reaction on a message. If the current user has not yet reacted with this emoji, the reaction is added. If they already have, it is removed. The caller must be an active member. The emoji must be exactly one grapheme cluster (a single visible character, including multi-codepoint emoji like πŸ‘¨β€πŸ‘©β€πŸ‘§).

Path Parameters

conversationId
string
required
The ID of the conversation.
messageId
string
required
The ID of the message to react to.

Body Parameters

emoji
string
required
The emoji to toggle. Must be exactly one grapheme cluster.

Response

reactionCounts
Record<string, number>
Updated emoji reaction counts for this message (e.g. { "πŸ‘": 3, "❀️": 1 }).
userReactions
string[]
The current user’s full set of reactions on this message after the toggle.
delta
number
1 if a reaction was added, -1 if removed.

Error Responses

{ "error": "Emoji must be exactly one grapheme cluster.", "code": "chat/invalid-emoji" }
{ "error": "You are not a member of this conversation.", "code": "chat/not-a-member" }
{ "error": "Message not found.", "code": "chat/message-not-found" }