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.
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
The first UTC day to return, in YYYY-MM-DD format. Send it together with endDate. With neither, the last 28 days are returned.
The last UTC day to return, inclusive, in YYYY-MM-DD format. At most 1100 days after startDate.
Header Parameters
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" \ -H "clarify-version: 2026-11"[ { "day": "2026-01-15", "credits": 42, "breakdown": { "Agents": { "credits": 30, "usage": 3 }, "Advanced Enrichment": { "credits": 12, "usage": 12 } } }]Get CLI sign-in settings
Returns the OAuth 2.0 device flow settings a command-line client uses to sign a user in. The response is plain JSON, not a JSON:API document, and the endpoint needs no authentication.
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.