---
title: "Record a raw pageview and optionally begin visitor measurement"
method: POST
path: "/pageviews"
---

# Record a raw pageview and optionally begin visitor measurement

`POST /pageviews`

## Request

- Base URL: `https://keyshortcuts.net/api`
- URL: `https://keyshortcuts.net/api/pageviews`
- Auth: none declared

## Request body

- PageViewInput
  - `path` string, required
  - `referrer` string, nullable
  - `measurement` object
    - `automated` boolean, required
    - `excluded` boolean, required

## Response `201`

Pageview recorded; eligible browsers receive a short-lived activity proof

- PageViewReceipt
  - `ok` boolean, required
  - `activityToken` string

---

[API](https://skmtc.dev/keyshortcuts/apis/keyshortcuts-public-api.md) · [All operations](https://skmtc.dev/keyshortcuts/apis/keyshortcuts-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/keyshortcuts/apis/keyshortcuts-public-api/revisions/372a3a71fc80?raw)
