Track an event
Records a single event from a browser or server SDK using the workspace
write key, then queues it for enrichment and delivery.
Request
This endpoint expects an object.
event_id
Unique event ID (ULID)
event_name
Event name (page_view, order_completed, etc.)
event_time
Event timestamp (Unix seconds)
anonymous_id
Anonymous visitor ID
schema_version
Schema version
user_id
Known user ID after identify
traits
User traits (email, phone, etc.)
context
Event context.
consent
Google Consent Mode v2.
properties
Event properties
test_mode
Whether event is in test mode
Response
Successful Response
ok
event_id
duplicate
Errors
422
Unprocessable Entity Error