Event schema
Full Zod schemas, ClickHouse columns, and what's required vs optional.
TrackEventInput — POST /v1/track body
POST /v1/track body{
event: string, // required, 1–128 chars
event_id?: string, // 1–128 chars
timestamp?: string, // ISO 8601
anonymous_id?: string, // 1–128 chars
user_id?: string, // 1–256 chars
session_id?: string, // 1–128 chars
url?: string, // valid URL, ≤ 2048 chars
path?: string, // ≤ 2048 chars
referrer?: string, // ≤ 2048 chars
properties?: Record<string, unknown> // JSON-stringified ≤ 8 KB
}Field
Required
Validation
Notes
BatchInput — POST /v1/batch body
POST /v1/batch bodyIdentifyInput — POST /v1/identify body
POST /v1/identify bodyForgetInput — POST /v1/forget body
POST /v1/forget bodyClassifiedSource — what the classifier returns
EventRow — what gets inserted into ClickHouse
Materialised views
daily_rollup
daily_rollupColumn
Type
sessions
sessionsWhat's not in the schema
Validation errors
See also
Last updated
Was this helpful?