- customerId (string): The external customer ID
- event (string): Event code matching a billable metric in your workspace
- metadata (
Record<string, unknown>, optional): Properties attached to the event - options.subscriptionId (string, optional): Target a specific subscription
- options.transactionId (string, optional): Unique ID for idempotency (auto-generated if omitted)
- options.timestamp (string, optional): ISO 8601 timestamp (defaults to now)
POST /api/v1/events request to Nozle:
- Always set a transactionId for idempotency in production
- Match event codes exactly to your billable metric codes
- Properties are used for aggregation (e.g., SUM on “tokens” property)
- For high-volume tracking, batch events or use a queue