Skip to main content
POST
Record usage events in batch

Authorizations

Authorization
string
header
required

Your account's secret key: Authorization: Bearer sk_test_… or sk_live_…. Server-side only.

Headers

Idempotency-Key
string

A unique key per operation (a UUID works). Retrying with the same key returns the original response.

Body

application/json
events
object[]
required

The usage events to record.

Response

Batch accepted.

Result of recording usage. accepted means the event was recorded now; duplicate, that it had already been recorded.