---
title: "Collect Pageviews"
method: POST
path: "/api/v1/analytics/collect"
---

# Collect Pageviews

`POST /api/v1/analytics/collect`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/v1/analytics/collect`
- Auth: none declared

## Request body

- PageviewBatchRequest
  - `batch` PageviewItem[], required
    - `eventId` string, required
    - `visitorId` string, required
    - `sessionId` string, required
    - `userId` string, nullable
    - `url` string, required
    - `referrer` string, nullable
    - `userAgent` string, nullable
    - `loadTimeMs` integer, nullable
    - `timestamp` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ascendkit/apis/ascendkit-api.md) · [All operations](https://skmtc.dev/ascendkit/apis/ascendkit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ascendkit/apis/ascendkit-api/revisions/0a41c122c44f?raw)
