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
The ID of the conversation.
The ID of the message to react to.
Body Parameters
The emoji to toggle. Must be exactly one grapheme cluster.
Response
Updated emoji reaction counts for this message (e.g. { "π": 3, "β€οΈ": 1 }).
The current userβs full set of reactions on this message after the toggle.
1 if a reaction was added, -1 if removed.
Error Responses
Invalid Emoji β 400 Bad Request
{ "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" }