Skip to navigation

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 database
  • user_id (optional) — Defaults to current user if not specified
  • video_id (optional) — Associated video ID (auto-derives name from video title)
  • audio_id (optional) — Associated audio ID
  • download_id (optional) — Associated download ID
  • name (optional) — Event name/label
  • post_id (optional) — Associated post ID
  • comment_id (optional) — Associated comment ID
  • button_id (optional) — Associated button ID
  • page_id (optional) — Associated page ID
  • product_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.
eventstringOptional
persistbooleanOptional
video_idstringOptional
audio_idstringOptional
download_idstringOptional
namestringOptional
post_idstringOptional
user_idstringOptional
comment_idstringOptional
button_idstringOptional
page_idstringOptional

Response

OK