A team's sandboxes: their template, size, state, server and lifetime. Env values are never shown, only their names.
API key access: read.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
team*stringThe team's id.
state?string"live" (the default: not stopped or failed) or "all" (the latest 500).
q?stringOnly sandboxes whose name or id has this text, ignoring case.
sandboxes, newest first, each with id, name, teamId, projectId, serverId, server, template, templateId, state ("creating", "running", "pausing", "paused", "resuming", "stopping", "stopped" or "failed"), preparing (true while it waits for its server to make its template), runtime ("firecracker" or "gvisor"), cpus, memoryMib, diskMib, network, isolation, labels, env (names only), url (its server's daemon), edgeUrl (its server's edge proxy, or null), ports (each port, public and url), error, createdBy, createdAt, startedAt, expiresAt (null when it runs until it's deleted), pausedAt and endedAt. Also limits (the team's, maxTtlSecs null when there's no limit) and inUse (what its sandboxes take now).
application/jsoncurl -X GET 'https://your-pyo.example.com/api/v1/sandboxes?team=string'{}