Mission Control
Mission Control usage of several workspaces
The Mission Control totals of several of your workspaces in one call: one row per workspace and the grand total.
GET
Mission Control usage of several workspaces
Use this endpoint when you belong to several workspaces and want their consumption side by side: one call answers every workspace you name, or all your workspaces when you name none. It takes no
x-workspace-id header.
Each workspace is answered exactly as Mission Control usage answers it, with what you may see there: your own usage, your teams or the whole workspace. A workspace you cannot read does not fail the call; it comes back marked and stays out of the grand total.
This endpoint returns period totals only. To break one workspace down by person, agent, model or day, call Mission Control usage for that workspace.
Code examples
Consumption of two workspaces in November:Headers
No workspace header. The workspaces come fromworkspace_ids[], or from your memberships when you leave it out. Use List workspaces to get the ids.
Query parameters
Workspaces to include, at most 25, in the order you give. Leave it out to include every workspace your token can be used in, ordered by name. Without it, a token that can be used in more than 25 workspaces is refused with
too_many_workspaces.IANA timezone of the local dates (for example
America/Sao_Paulo). Default: the platform timezone.Metrics to return, with the same ids as Mission Control usage. Default:
consumption_net, consumption_charged, consumption_refunded.Response
Response fields
Errors
Query refusals are JSON objects with a stablecode, the same for every workspace of the call. Request validation failures (more than 25 workspace_ids, a malformed date) come back as a 422 in Laravel’s {message, errors} shape instead:
Related
- List workspaces: the ids and your role in each workspace.
- Mission Control usage: one workspace in detail.
- Tess MCP: the same answer as the
list_mission_control_usage_by_workspacetool.

