Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

The control surface credential. Send Authorization: Bearer <token>.

Two kinds of token are accepted and they are told apart by shape, not by a separate header. A token beginning pbk_ is an org scoped API key, whose public half and secret half are generated together and of which only a hash of the secret is ever stored; anything else is treated as an OAuth 2.1 access token and verified against the authorization server's keys.

Both resolve to the same context: an org, a principal and a set of scopes. Nothing downstream branches on which channel you used, with one deliberate exception, key management, which requires a signed-in person so that a key can never mint another key.

Scopes are enforced when MCP tools are REGISTERED rather than when they are called, so a tool your credential cannot use is absent from tools/list rather than refused mid gesture.

Response

This organisation's allowance and what is left of it.

How much copilot this organisation has, and how much of it is gone.

included
integer
required

Your monthly allowance in TOKENS, summed over your live subscription purchases. Zero is a real answer and not a missing one: pay as you go includes no allowance at all, so an organisation holding only pay-as-you-go devices has none.

used
integer
required

Spent this period, in TOKENS, input and output together.

period
string
required

The billing month both counts are measured in, as YYYY-MM-DD naming its first day. The same period GET /v1/usage reports device time against, so two bars on one screen cannot disagree about which month it is.

usedFraction
number
required

used over included, from 0 to 1 and CLAMPED at 1, because a bar cannot be more than full, and any overshoot is already visible in the two counts. Zero when nothing is included.

exhausted
boolean
required

The allowance is spent, and copilot drops to command mode. TRUE from the first token for an organisation whose allowance is zero.

nearLimit
boolean
required

Past four fifths of the allowance but not yet spent: the point at which a person is warned.

metered
boolean
required

Whether anything on this deployment actually counts copilot use. FALSE means used is zero because nothing measured it, not because nothing was spent, and a percentage drawn from that zero would be a number nobody observed. It is false on every deployment that serves no copilot.