Get Sandbox Usage
Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team’s; cluster admins may pass all_orgs or org_ids. Cost and spend reporting lives in the budgeting API (/api/v1/budgeting/usage/costs).
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Query Parameters
Start time as Unix seconds, inclusive
End time as Unix seconds, exclusive. Defaults to now.
Time bucket width.
1m, 1h, 1d Repeat or comma-separate grouping dimensions.
Aggregate usage across all organizations (cluster admins only).
Filter by organization IDs (cluster admins only, implies cluster scope).