Reaction counts, and which ones this reader left
Pass the same visitorId you react with, so mine lights the right buttons.
x-api-keyx-api-key<token>A tenant API key — secret (htk_…) or, where allowed, publishable (hpk_…).
post*stringThe post's slug (recommended) or id.
visitorId?stringYour own stable, anonymous id for the reader (e.g. a uuid kept in localStorage). Used to remember their reactions. Falls back to ip + user agent.
Counts per type, and the ones this reader left.
response?unknownapplication/jsoncurl -X GET 'https://api.horbit.ng/v1/public/blog/posts/five-lessons-open-data-hackathon/reactions'{ "status": true, "message": "Reactions retrieved successfully", "data": { "enabled": true, "total": 87, "counts": { "like": 51, "love": 20, "clap": 12, "insightful": 4 }, "types": [ { "type": "like", "label": "Like", "emoji": "👍" } ], "mine": [ "like" ] }}Leaves a comment POST
Returns the comment and its `status`: `approved` (live now) or `pending` (waiting for a moderator) — show the reader which. Spam is accepted silently and reported as `pending`. Pass `parentId` to reply. Render `website` as a hidden honeypot field and leave it empty. Fails with 403 when comments are closed on the post, 409 on a duplicate.
Toggles a reaction POST
Adds the reaction, or removes it if this reader already left it. Returns the new counts. Only the types in `GET /public/blog` → `reactions.types` are accepted.