Skip to main content

Track frontend event

POST /api/analytics/events

Capture a frontend-initiated analytics event. body.event_type selects the PostHog event name; the remaining fields on the validated model become the event's properties. Telemetry failures are isolated so they never bubble up to the user's primary action.

Request body

FieldTypeRequiredDescription
event_typestringyes
git_provider`enumnull`no

Responses

StatusDescription
200Successful Response
422Validation Error

Response body

FieldTypeRequiredDescription
statusstringyes

Operation ID: track_frontend_event_api_analytics_events_post