Report a usage event
Reports a single usage event for a customer. The event_name must match an active usage event definition configured for your account.
If no properties are provided, a default count: 1 property is added automatically.
Authentication
AuthorizationBearer
Use a secret key (sk_test_* or sk_live_*) for full read/write access, or a public key (pk_test_* or pk_live_*) for read-only access.
Request
This endpoint expects an object.
customer_id
The customer who performed the action.
event_name
The name or ID of the usage event definition. Must match an active event in your account.
subscription_id
Optional subscription to associate the event with.
timestamp
When the event occurred. Defaults to the current time.
properties
Custom key-value properties for the event.
idempotency_key
Unique key to prevent duplicate event processing.
Response
Usage event reported successfully
data
Errors
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error