Skip to main content
POST
Page

Description

Record a web page view. Equivalent to Screen but for web apps. Short alias: POST /v1/p When to use:
  • Web apps and marketing sites
  • Track specific page metadata (title, URL, referrer)

Headers

string
required
HTTP Basic Auth. See Events Authentication.
string
default:"application/json"
required
Must be application/json.

Body

string
Identified user ID. At least one of userId or anonymousId is required.
string
Anonymous user ID. Required if userId is not provided.
string
Page name.
object
Page metadata such as path, url, referrer, and title.
string
When the page view occurred, as ISO 8601.
object
Optional environment metadata (device, OS, app, IP, locale, campaign, and more). SDKs populate this automatically. See Context Object.

Response

Successful requests return HTTP 200 with an empty JSON object.