Skip to main content
GET
Get credit usage: credits per day, workspace and feature.
Scope: org:usage:read. See API Tokens.

Authorizations

Authorization
string
header
required

CloudThinker token: a personal access token ct_pat_… (fine-grained scopes, created in Settings) or an OAuth access token ct_oat_… (1 hour, from the OAuth flow). Send Authorization: Bearer <token>. Scopes have the form module:resource:read|write; write includes read.

Path Parameters

workspace_id
string<uuid>
required

Workspace to act in. Every call names it.

Query Parameters

since
string<date>
required

First day, inclusive.

until
string<date>
required

Last day, inclusive.

workspace_id
string<uuid>

Only this workspace.

Response

OK

Credits spent per day, workspace and feature. Days with no spend are left out.

since
string<date>
required
until
string<date>
required
items
UsageDay · object[]
required