Skip to main content

Usage

GET /v1/usage — scope billing:read (a key with tools:read, which every preset holds, also works).
string
key, identity, tool or day.
string
Start of the window (ISO 8601).
string
End of the window (ISO 8601).
total_micro_usd is the sum of your ledger debits in the window, so it matches your charges, including computer time and media billed after the call. Per key and per day split those debits by who was charged and when. Per tool and per identity use each call’s own cost, and whatever the ledger charged beyond that (computer time, media renders, resource fees) is on the row with key: null, so the rows always add up to the total. calls leaves out the console’s own page reads. Your balance, top-ups and ledger are on the existing credits routes.

Balance and top-ups

Developer workspaces are prepaid. Top up in the console (Usage → Top up, $10 to $1,000 per top-up). The first qualifying top-up marks the workspace funded. Before it, a gated call answers 402 funding_required even with credit left on the balance:
  • Free credit covers: data, search and social data tools, image generation, model routing, stock media search, identities and inboxes, email to your own team, domain checks, paper trades, vaults and webhooks.
  • Needs a first $10 top-up: AI video, voice, music, sound effects, 3D, edits, clips and transcription; email to people outside your workspace; phone numbers and texts; live trades and buying domains (72 hours after your first top-up); computers, browsers and phone sandboxes; social posting; connected apps; hosted apps; identity verification; character training.
You can set a low-balance alert in Settings. Subscriptions and trials are a studio feature and are not offered to developer workspaces.

Logs

Every call a key or MCP connection makes in a developer workspace is logged, with its cost. Rows are kept 90 days; the redacted arguments 30 days. Arguments never include message bodies: recipient lists become a count, subjects a length. GET /v1/logs — scope audit:read (a key with tools:read also works).
string
A key or MCP connection id.
string
A tool slug.
string
An idn_… id.
string
Any resource id.
string
2xx, 4xx, 5xx or held.
string
api, mcp, developers, developers/playground or cli.
string
One req_… id.
string
Start time.
string
End time.

The log entry

string
The request id, req_…. It is the same id as a tool run’s id and the request_id in an error.
string
HTTP method.
string
The route called.
string | null
The tool slug, for tool runs.
integer
The HTTP status answered.
string | null
The error code, when it failed. See Errors.
integer
What the call was debited.
integer
How long it took.
object
{ kind: "key" | "mcp" | "session", id, name }.
string | null
The identity the call acted for.
string | null
The resource it touched.
string
Where it came from.
string | null
The approval, if the call was held.
object | null
The arguments, redacted.
GET /v1/logs/{request_id} reads one entry and adds audit, the audit-log rows written by that request.

From the SDK and CLI