Skip to content

Track Blog View

POST
/api/v1/posts/{id}/view

Parameters

Path Parameters

id*
Type
string
Required

Responses

View tracked

Playground

Server
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

Track a blog post view.

Auth: public.

Parameters

NameInTypeRequiredDescription
idpathstringYesPost id

Request Body

Optional.

json
{}

Response 200

json
{
	"data": { "post_id": "post_2", "tracked": true },
	"user_context": { "authenticated": false },
	"meta": {}
}

Response Errors

  • 404 post not found

Notes

  • Use this for engagement analytics.
  • The backend should protect against duplicate or abusive counts.