Reactions & views
Removes this reader's reaction of one type
DELETE
x-api-keyheader
x-api-key<token>A tenant API key — secret (htk_…) or, where allowed, publishable (hpk_…).
post*stringThe post's slug (recommended) or id.
type*unknownvisitorId?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 DELETE 'https://api.horbit.ng/v1/public/blog/posts/five-lessons-open-data-hackathon/reactions/like'{ "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" ] }}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.
Counts a view POST
Call once when a reader opens the post (from the browser, so bots that never run script do not count). Repeat views by the same reader within 30 minutes are ignored — `counted` says which.