## Get Agent Sandbox

`client.sandboxVMs.get(stringsandboxVMID, RequestOptionsoptions?): SandboxVM`

**get** `/v1/sandbox_vms/{sandbox_vm_id}`

Get an Agent Sandbox

### Parameters

- `sandboxVMID: string`

### Returns

- `SandboxVM`

  An Agent Sandbox: a VM sandboxes run on, in one region. It can be paused and resumed.

  - `id: string`

    Unique identifier for the Agent Sandbox.

  - `created_at: string`

    When the Agent Sandbox was created.

  - `endpoint_hostname: string | null`

    Hostname the Agent Sandbox's sandbox API is served on over HTTPS. It stays the same for the life of the Agent Sandbox. Null until assigned.

  - `image_version: string | null`

    Version of the image the Agent Sandbox runs. Null until it is running.

  - `instance_type: string`

    Instance type of the Agent Sandbox.

  - `name: string`

    Name of the Agent Sandbox.

  - `opensandbox_version: string | null`

    Version of OpenSandbox the Agent Sandbox runs. Null until it is running.

  - `paused_at: string | null`

    When the Agent Sandbox was paused. Null while it is running.

  - `power_state: "running" | "paused" | "powered_off"`

    Whether the Agent Sandbox's sandboxes can run.

    - `"running"`

    - `"paused"`

    - `"powered_off"`

  - `powers_off_at: string | null`

    When the paused Agent Sandbox is, or was, powered off. Null while it is running.

  - `project_id: string`

    ID of the project the Agent Sandbox is in.

  - `region: RegionName`

    Region the resource is in.

    - `"us-sva-2"`

    - `"us-wdc-1"`

  - `status: ResourceStatus`

    Status of the resource.

    - `"pending"`

    - `"creating"`

    - `"updating"`

    - `"ready"`

    - `"deleting"`

    - `"deleted"`

    - `"error"`

    - `"suspended"`

  - `tags: Array<string>`

    Tags attached to the Agent Sandbox.

  - `updated_at: string`

    When the Agent Sandbox was last updated.

  - `vpc_id: string | null`

    ID of the VPC the Agent Sandbox is in. Null until it is placed in one.

### Example

```typescript
import NirvanaLabs from '@nirvana-labs/nirvana';

const client = new NirvanaLabs({
  apiKey: process.env['NIRVANA_LABS_API_KEY'], // This is the default and can be omitted
});

const sandboxVM = await client.sandboxVMs.get('sandbox_vm_id');

console.log(sandboxVM.id);
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-01-01T00:00:00Z",
  "endpoint_hostname": "0123456789ab.sandboxes.example.com",
  "image_version": "2026.11.1",
  "instance_type": "n1-highcpu-2",
  "name": "my-sandboxes",
  "opensandbox_version": "1.2.0",
  "paused_at": "2025-01-01T00:00:00Z",
  "power_state": "running",
  "powers_off_at": "2025-01-01T01:00:00Z",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "region": "us-sva-2",
  "status": "ready",
  "tags": [
    "production",
    "agents"
  ],
  "updated_at": "2025-01-01T00:00:00Z",
  "vpc_id": "123e4567-e89b-12d3-a456-426614174000"
}
```
