ClarifyAPI
Billing

List credit usage by billing period

Returns the total credits spent in each recent billing period, newest first. The first entry is the current billing period and older entries are monthly. Periods before the workspace was created are left out.

GET
/workspaces/{workspace}/billing/usage-periods
Authorization<token>

API key authentication. Send your key in the Authorization header as: api-key <your-api-key>.

In: header

Path Parameters

workspace*string

The workspace slug — the {slug} segment of your Clarify workspace URL.

Query Parameters

count?integer

How many recent periods to return, from 1 to 12.

Range1 <= value <= 12
Default6

Header Parameters

clarify-version?string

The API version for this request. Send 2026-11 to get the behavior documented here. Omit it to use your API key's version, which this header can raise but not lower.

Response Body

application/json

curl -X GET "https://example.com/workspaces/string/billing/usage-periods" \  -H "clarify-version: 2026-11"
[  {    "start": "2026-01-01T00:00:00.000Z",    "end": "2026-01-31T00:00:00.000Z",    "used": 640  },  {    "start": "2025-12-01T00:00:00.000Z",    "end": "2025-12-31T00:00:00.000Z",    "used": 512  }]