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
| Field | Type | Required | Description |
|---|---|---|---|
event_type | string | yes | — |
git_provider | `enum | null` | no |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
status | string | yes | — |
Operation ID: track_frontend_event_api_analytics_events_post