Reactions & views
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.
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.
application/json- body
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.
Whether this call counted.
response?unknownapplication/jsoncurl -X POST 'https://api.horbit.ng/v1/public/blog/posts/five-lessons-open-data-hackathon/views' \ -H 'Content-Type: application/json' \ -d '{}'{ "status": true, "message": "View counted", "data": { "counted": true, "views": 1285 }}