Events
Ingest a usage event
Send a single usage event. Uses transactionId for idempotency - sending the same transactionId twice will return the existing event.
post/api/events
Request body
Example request
{
"transactionId": "evt_12345",
"subscriptionId": "sub_abc123",
"code": "api_calls",
"timestamp": "2026-02-10T12:00:00Z",
"properties": {
"tokens": 1500,
"region": "us-east"
}
}Response
Event ingested successfully
Example response
{
"id": "clx1234567890",
"transactionId": "txn_unique_123",
"subscriptionId": "clxsub123",
"code": "api_calls",
"properties": {
"region": "us-east",
"bytes": 1024
}
}