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.
API key authentication. Send your key in the Authorization header as: api-key <your-api-key>.
In: header
Path Parameters
The workspace slug — the {slug} segment of your Clarify workspace URL.
Query Parameters
How many recent periods to return, from 1 to 12.
1 <= value <= 126Header Parameters
The API version for this request. Send 2026-10 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-10"[ { "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 }]List daily credit usage
Returns the credits the workspace spent on each UTC day, split by feature. Without a date range, the last 28 days are returned. Days with no spend are left out. Results can be up to 5 minutes old. The splits by source and by member are returned only to a caller who can manage billing. For an API key, that means an admin-scoped personal key.
Get the credit balance
Returns the credits included, spent, and remaining in the current billing period, with the overage settings and spend. The member spend limit fields describe the calling user. For an API key with no user, `userSpend` is 0 and `seatLimit` is null.