Create Event
Trigger an analytics event. The event name is automatically camelized for processing.
Authentication: Required — Bearer token.
Request body:
event(required) — Event type in snake_case (e.g.user_login,video_play,page_view)persist(optional, default true) — Whether to persist the event to the databaseuser_id(optional) — Defaults to current user if not specifiedvideo_id(optional) — Associated video ID (auto-derivesnamefrom video title)audio_id(optional) — Associated audio IDdownload_id(optional) — Associated download IDname(optional) — Event name/labelpost_id(optional) — Associated post IDcomment_id(optional) — Associated comment IDbutton_id(optional) — Associated button IDpage_id(optional) — Associated page IDproduct_id(optional) — Associated product ID
Response:
message— “event triggered”
Side effects: Triggers the event through the Event system, which may fire automations, update analytics, or send notifications.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
event
persist
video_id
audio_id
download_id
name
post_id
user_id
comment_id
page_id
Response
OK