v2

latestOpenAPI 3.0.0raw.githubusercontent.com2026-02-16143114179.4 KB
Billable Metrics

List all billable metrics

Retrieve all billable metrics with their filters and charge counts.

get/api/billable-metrics

Response

List of billable metrics

idstring required
namestring required
codestring required
descriptionstring
aggregationType'COUNT' | 'SUM' | 'MAX' | 'UNIQUE_COUNT' | 'LATEST' | 'WEIGHTED_SUM' required
fieldNamestring
recurringboolean required
createdAtstring required
updatedAtstring required

Example response

[
  {
    "id": "clx1234567890",
    "name": "API Calls",
    "code": "api_calls",
    "description": "Number of API calls made",
    "aggregationType": "COUNT",
    "fieldName": "tokens",
    "filters": [
      {
        "id": "clx1234567890",
        "key": "region",
        "values": [
          "us-east",
          "us-west",
          "eu"
        ]
      }
    ]
  }
]