---
title: "Track Client Analytics Events"
method: POST
path: "/api/analytics/events"
---

# Track Client Analytics Events

`POST /api/analytics/events`

## Request

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

Track aggregate analytics and bounded account-linked onboarding diagnostics.

## Request body

- ClientAnalyticsBatchRequest
  - `schema_version` integer
  - `platform` string
  - `surface` string
  - `app_version` string, nullable
  - `app_build` string, nullable
  - `anonymous_id` string, required
  - `events` ClientAnalyticsEvent[], required
    - `event_id` string, uuid
    - `event_type` string, required
    - `occurred_at` string, date-time, nullable
    - `session_id` string, nullable
    - `properties` object

## Response `200`

Successful Response

- IngestionCountsResponse
  - `accepted` integer, required
  - `duplicate` integer, required
  - `rejected` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yourbeckett/apis/beckett-platform.md) · [All operations](https://skmtc.dev/yourbeckett/apis/beckett-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/yourbeckett/apis/beckett-platform/revisions/a1cb8f2c8961?raw)
