GET /api/sandboxes/:id/usage.*GbSeconds fields are GiB-seconds (binary, 230
bytes/GiB), not decimal GB. For a sandbox provisioned at 1024 MiB
running for one second, memoryGbSeconds is 1.query groupBystringrequiredsandbox for top sandboxes, or tag:<key> for usage by tag value.
Keys may contain : — everything after the first : is the tag
key (so groupBy=tag:team:payments groups by the key
team:payments).query fromstring2026-05-27,
interpreted as UTC midnight) or an RFC3339 timestamp. Default: now
minus 30 days. Max window: 90 days.query tostringfrom. Default:
now.query filter[tag:<key>]stringfilter[...] params are AND'd across
dimensions. Passing the same filter[...] key twice returns 400 —
put multiple OR values in one comma-separated string instead. Empty
value (filter[tag:team]=) matches sandboxes without the team
key.query sortstring-memoryGbSeconds (default) or -diskOverageGbSeconds.query limitintegerquery cursorstringnextCursor.fromstringrequiredtostringrequiredgroupBystringrequiredgroupBy value.totalobjectrequireditems[]
if you need a per-page subtotal instead.memoryGbSecondsnumberrequireddiskOverageGbSecondsnumberrequireditemsobject[]requiredsort (default: largest first).groupBy=sandbox, each row is one sandbox:sandboxIdstringrequiredaliasstringstatusstringrunning, hibernated,
stopped). Absent when no session exists.tagsobjectrequiredtagsLastUpdatedAtstringnull if
no tags exist.memoryGbSecondsnumberrequireddiskOverageGbSecondsnumberrequiredgroupBy=tag:<key>, each row is one tag value:tagKeystringrequiredteam).tagValuestringrequiredmemoryGbSecondsnumberrequiredtagKey=tagValue.diskOverageGbSecondsnumberrequiredsandboxCountintegerrequireduntaggedobjectgroupBy=tag:<key>. Sibling bucket for sandboxes
that lack the grouping key — without it, untagged sandboxes would
silently disappear from the rollup. Same shape as a tag row minus
tagKey/tagValue.memoryGbSecondsnumberrequireddiskOverageGbSecondsnumberrequiredsandboxCountintegerrequirednextCursorstringcursor= on the next request, or null
when no further pages exist.123456789101112131415161718{ "from": "2026-03-23T00:00:00Z", "to": "2026-04-22T00:00:00Z", "groupBy": "sandbox", "total": { "memoryGbSeconds": 20000, "diskOverageGbSeconds": 360 }, "items": [ { "sandboxId": "sb-abc", "alias": "my-agent", "status": "running", "tags": { "env": "prod", "team": "payments" }, "tagsLastUpdatedAt": "2026-04-19T14:02:00Z", "memoryGbSeconds": 8000, "diskOverageGbSeconds": 120 } ], "nextCursor": null }