v2

latestOpenAPI 3.0.0raw.githubusercontent.com2026-02-16143114179.4 KB
Events

List events for a subscription

Retrieve usage events for a specific subscription with optional filtering.

get/api/events/subscription/{subscriptionId}

Path parameters

subscriptionIdstring required

Subscription ID

Query parameters

codestring

Filter by metric code

fromstring

Start date (ISO 8601)

tostring

End date (ISO 8601)

pagenumber
perPagenumber

Response

List of events for the subscription

Example response

{
  "data": [
    {
      "id": "clx1234567890",
      "transactionId": "txn_unique_123",
      "subscriptionId": "clxsub123",
      "code": "api_calls",
      "properties": {
        "region": "us-east",
        "bytes": 1024
      }
    }
  ],
  "meta": {
    "total": 150,
    "page": 1,
    "limit": 20,
    "totalPages": 8
  }
}