Ingest events from your application
name
, which is a string that can be used to identify the type event. For example, ai_usage
, video_streamed
or file_uploaded
.customer_id
or external_customer_id
, which is the Polar’s customer ID or your user’s ID. This is used to identify the customer that triggered the event.metadata
object, which is a JSON object that can contain any additional information about the event. This is useful for storing information that can be used to filter the events or compute the actual usage. For example, you can store the duration of the video streamed or the size of the file uploaded.