Prerequisites:
- These operations are part of the Enterprise plan. On other plans, they fail with
PLAN_UPGRADE_REQUIRED. - An account API key or a workspace API key.
usageneeds noX-Paradime-Workspaceheader: it covers every workspace the key can reach, or the one you name inworkspaceUid. - The Usage viewer capability group.
Operations
What the numbers count
The counters are
BigInt values: read them as 64-bit integers. A recent period can still grow while runs end. Deleted workspaces are left out, so a total for a period with a deleted workspace doesn’t include that workspace’s usage.
Read usage for a period
period runs from from, included, up to to, excluded, and is at most 366 days long. A time without an offset is UTC. For a calendar month, send the first instant of the month and the first instant of the next one, in UTC.
Leave out workspaceUid to sum every workspace the key can reach: a workspace key’s own, or every workspace an account key is granted. Select workspaces for the same period one workspace at a time.
Example response
Example response
workspaceUid, or select usage on the workspace:
Errors
These are the cases specific to usage. For the error format and the codes every area shares, see Errors.Related
- Python SDK: Usage: the same reads in
paradime.admin.usage. - Paradime CLI:
paradime admin:paradime admin usage. - DinoAI credits and Budget & Consumption: how DinoAI credits work, and spend in the app.
- Administration API: DinoAI: set monthly DinoAI budgets.