events

Record Event

Record a user event.

This endpoint is used to track user actions for analytics purposes. Events are stored with the user's ID and can include arbitrary metadata.

Common event types:

  • ad_shared: User shared an ad to a platform
  • ad_downloaded: User downloaded an ad image
  • ad_edited: User opened the ad editor

Args: event: Event data including type, source, and metadata

Returns: Created event record

post/api/v1/events

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/events
  • Auth: HTTP bearer

Request body

event_typestring required

Type of event (e.g., 'ad_shared')

event_sourcestring nullable

Source of event (e.g., 'ads_agent')

event_metadataobject nullable

Additional event data

Response

Successful Response

idinteger required
user_idinteger required
event_typestring required
event_sourcestring nullable required
event_metadataobject nullable required
created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.