List sandboxes

A key lists its own project's sandboxes.

GET/v1/sandboxes

A key lists its own project's sandboxes. A signed-in person sees every project of the organization, so the dashboard names one with project; a project the caller may not see answers forbidden.

A key with the sandboxes:read scope.

Request

curl "https://api.pod.mapier.ai/v1/sandboxes" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
Pod-End-UserheaderstringNoNarrows a project key to one of its end users: the call sees only that end user's sandboxes and usage, any other answering not_found, and a create is labelled with it. An end user of another project, or one that is not there, is not_found; a suspended one refuses creates and wakes (account_restricted).
projectquerystringNoOnly this project's sandboxes.
statequery"creating" | "running" | "stopping" | "sleeping" | "waking" | "stopped" | "deleting" | "deleted" | "error"NoOnly sandboxes in this state.
labelquerystring[]NoOnly sandboxes with every key=value label given.
templatequerystringNoOnly sandboxes made from this template.
end_userquerystringNoOnly sandboxes labelled with this end user.
limitqueryintegerNo
cursorquerystringNoThe next_cursor of the page before. Valid for 24 hours.

Answer

200. A page of sandboxes, newest first.

200
{
  "data": [
    {
      "id": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
      "project": "prj_3ahrz6dmv29gqy5ckt18fp",
      "state": "running",
      "tier": null,
      "operation": null,
      "reason": null,
      "restarted": false,
      "system": "linux",
      "size": "small",
      "class": "shared",
      "disk": "persistent",
      "template": null,
      "parent": null,
      "created_at": "2026-11-23T12:00:00.000Z",
      "state_at": "2026-11-23T12:00:00.000Z",
      "time_limit_at": null,
      "idle_s": 900,
      "flags": {
        "no_save": false,
        "billing_mark": null
      },
      "labels": {
        "app": "quickstart"
      },
      "queue_position": null,
      "end_user": null,
      "group": null
    }
  ],
  "next_cursor": null
}
FieldTypeAlwaysWhat it is
dataSandbox[]Yes
next_cursorstring | nullYes

Errors

The refusals this call is known for: invalid, forbidden, in_other_cell. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.sandboxes.list({ … })
Pythonpod.sandboxes.list(…)
mpodmpod sandboxes list