Skip to content
DocsOpenAPI spec

    List Agent Sandboxes

    GET/v1/sandbox_vms

    List the Agent Sandboxes in a project

    Query ParametersExpand Collapse
    project_id: string

    Project ID of resources to request

    cursor: optional string

    Pagination cursor returned by a previous request. Only valid for the same sort order.

    limit: optional number

    Maximum number of items to return

    maximum100
    minimum10
    name: optional string

    Filter by a case-insensitive substring of the Agent Sandbox name

    region: optional string

    Filter by region

    sort: optional string

    Comma-separated sort terms in precedence order, each field:asc or field:desc. Fields: created_at, updated_at

    tags: optional array of string

    Filter by tags. Repeat the parameter to require several tags; an Agent Sandbox must carry all of them.

    ReturnsExpand Collapse
    SandboxVMList object { items, pagination }
    items: array of SandboxVM { id, created_at, endpoint_hostname, 13 more }
    id: string

    Unique identifier for the Agent Sandbox.

    created_at: string

    When the Agent Sandbox was created.

    formatdate-time
    endpoint_hostname: string

    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

    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

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

    paused_at: string

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

    formatdate-time
    power_state: "running" or "paused" or "powered_off"

    Whether the Agent Sandbox’s sandboxes can run.

    One of the following:
    "running"
    "paused"
    "powered_off"
    powers_off_at: string

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

    formatdate-time
    project_id: string

    ID of the project the Agent Sandbox is in.

    region: RegionName

    Region the resource is in.

    One of the following:
    "us-sva-2"
    "us-wdc-1"

    Status of the resource.

    One of the following:
    "pending"
    "creating"
    "updating"
    "ready"
    "deleting"
    "deleted"
    "error"
    "suspended"
    tags: array of string

    Tags attached to the Agent Sandbox.

    updated_at: string

    When the Agent Sandbox was last updated.

    formatdate-time
    vpc_id: string

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

    List Agent Sandboxes

    curl https://api.nirvanalabs.io/v1/sandbox_vms \
        -H "Authorization: Bearer $NIRVANA_LABS_API_KEY"
    {
      "items": [
        {
          "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"
        }
      ],
      "pagination": {
        "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
        "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
        "total_count": 125
      }
    }
    Returns Examples
    {
      "items": [
        {
          "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"
        }
      ],
      "pagination": {
        "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
        "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
        "total_count": 125
      }
    }