Reactions
Readers can react to comments. A reaction is a toggle: re-sending the same reaction type removes it. Sending a different type adds it alongside — a reader can hold several reaction types on one comment at once.
Toggle a reaction
POST /api/v1/comments/{commentId}/reactions
X-API-Key: ek_…
X-RSMG-Engage-Identity: <assertion>
X-RSMG-Engage-Identity-Signature: t=…,v1=…,kid=…
Content-Type: application/json
{ "reaction_type": "like" }
The reacting reader comes from the identity assertion.
The default allowed types are like, love, laugh, surprise, sad, and angry; your tenant
can override the set via the allowedReactions setting. reaction_type is 1-30 characters. An
unknown type returns 422, and so does reacting to a deleted comment.
The response is 200 with { "action": "added" | "removed", "reaction": … }. reaction is present
when the reaction was added.
Read counts
GET /api/v1/comments/{commentId}/reactions
X-API-Key: ek_…
Needs the API key only, no identity. Returns aggregate counts as [{ "reactionType", "count" }].
For counts across a whole discussion, use GET /api/v1/discussions/{discussionId}/reactions. To learn which types the current reader has applied,
use the comment list read with the viewer's assertion — each comment
is enriched with the viewer's reactions there.
Real-time echoes
A toggle emits a reaction_toggled SSE event. If your tenant turns on the
emitExternalReactorId setting (off by default), the event also carries an externalUserId
field — the reacting reader's external id. A widget that knows readers only by your ids can then
suppress the echo of its own reader's action by matching externalUserId === <viewer external id>.
With the setting off, match on userId instead. See
Real-time (SSE).
Full schemas are under Reactions in the API Reference.