public-heartbeat
public-heartbeat

Record Page View

Record a single page view. Called by the frontend usePageView hook on every React route change. Always returns { "ok": true }.

Identity (2026-09-20, migration 178): the Authorization header is the truth when present (user_id_source='token'); the body's Clerk id is accepted as a fallback and marked 'client_claim'. The Clerk id and the per-tab session_id are stored on the row either way, so a view recorded before the users row existed can be resolved later and a session can be stitched when the person signs in (services/identity_resolution).

post/api/public/page-view

Request

  • Base URL: https://api.activitia.net (the document declares no server; this is the origin it was published from)
  • URL: https://api.activitia.net/api/public/page-view
  • Auth: none declared

Headers

X-Anon-IDstring nullable
CF-IPCountrystring nullable
CF-IPCitystring nullable

Request body

pathstring required
refstring nullable
anon_idstring nullable
user_idstring nullable
visitor_idstring nullable
session_idstring nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.