---
title: "Get a sandbox's team and state"
method: GET
path: "/admin/sandboxes/{sandboxID}"
tags: ["admin"]
---

# Get a sandbox's team and state

`GET /admin/sandboxes/{sandboxID}`

## Request

- Base URL: `https://api.e2b.app`
- URL: `https://api.e2b.app/admin/sandboxes/{sandboxID}`
- Auth: one of:
  - API key in header `X-Admin-Token`
  - HTTP bearer

Reads the team and state of a sandbox from its latest lifecycle event.
The state lags the sandbox while that event is in flight. A sandbox
whose events have expired is not found.

## Path parameters

- `sandboxID` string, required

## Response `200`

The sandbox, its team and its state

- AdminSandbox
  - `sandboxID` string, required: Identifier of the sandbox
  - `teamID` string, uuid, required: Identifier of the team that owns the sandbox
  - `state` 'running' | 'paused' | 'killed', required: State after the sandbox's latest create, resume, pause or kill event

## Other responses

- `400`: Bad request
- `401`: Authentication error
- `404`: Not found
- `429`: Too many requests
- `500`: Server error

## Changes

- **2026-10-22** `04ec8eabc7f9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/admin/sandboxes/:sandboxID/get.md)

---

[API](https://skmtc.dev/e2b-dev/apis/e2b-api.md) - [All operations](https://skmtc.dev/e2b-dev/apis/e2b-api/llms.txt) - [OpenAPI document](https://skmtc.dev/e2b-dev/apis/e2b-api/revisions/99fccbc60e6d?raw)
