POST /v1/page
Record a page view.
POST
/v1/pageIngests a page view for a visitor.
Events base URL: https://api.amplifyup.ai
The Node SDK page() helper sends this. Skip it inside Composer preview.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Content-Type | string | Yes | application/json |
Body fields
| Name | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | Must be page |
| anonymousId | string | Yes | Visitor ID (for example browser_…) |
| userId | string | No | Known user id when identified |
| properties | object | Yes | Must include trackingId plus path or url |
| timestamp | string | No | ISO-8601 time. Defaults to now if omitted. |
Example request
Example response (200)
Prefer
page() from @amplifyup/sdk so visitor IDs and preview suppression stay correct.