billing

Get credits timeseries

Changed on

Get credit consumption timeseries data for the specified Organization, broken down by dimensions such as product and usage type.

get/v1/organizations/{organizationId}/billing/credits/timeseries

Request

  • Base URL
    https://gateway.cribl.cloud
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://login.cribl.cloud/oauth/token
    • or HTTP bearer

Path parameters

organizationIdstring required

The <code>id</code> of the Organization.

Query parameters

startingOnstring date-time required
Example:2025-05-01T00:00:00.000Z

Inclusive start of the query date range in ISO 8601 format. Must be before endingBefore. Minimum range is 1 day. Maximum range depends on window: 6 months for daily, 7 years for monthly.

endingBeforestring date-time required
Example:2025-06-01T00:00:00.000Z

Exclusive end of the query date range in ISO 8601 format. Must be after startingOn. Minimum range is 1 day. Maximum range depends on window: 6 months for daily, 7 years for monthly.

window'monthly' | 'daily' required

Aggregation granularity for timeseries data. Determines the maximum allowed date range: up to 6 months for daily, up to 7 years for monthly.

Response

Credits timeseries data.

countinteger required

Total number of items in the response.

Example response

{
  "items": [
    {
      "date": "2025-05-01T00:00:00.000Z",
      "credits": 147722.92,
      "dimensions": [
        {
          "dimension": "stream",
          "credits": 42150.5
        }
      ]
    }
  ],
  "count": 12
}

Changes