Skip to content
DocsOpenAPI spec

    Sandbox VMs

    Create Agent Sandbox
    client.sandboxVMs.create(SandboxVMCreateParams { name, project_id, region, 3 more } body, RequestOptionsoptions?): Operation { id, created_at, details, 6 more }
    POST/v1/sandbox_vms
    Get Agent Sandbox
    client.sandboxVMs.get(stringsandboxVMID, RequestOptionsoptions?): SandboxVM { id, created_at, endpoint_hostname, 13 more }
    GET/v1/sandbox_vms/{sandbox_vm_id}
    Update Agent Sandbox
    client.sandboxVMs.update(stringsandboxVMID, SandboxVMUpdateParams { name, tags } body, RequestOptionsoptions?): SandboxVM { id, created_at, endpoint_hostname, 13 more }
    PATCH/v1/sandbox_vms/{sandbox_vm_id}
    Delete Agent Sandbox
    client.sandboxVMs.delete(stringsandboxVMID, RequestOptionsoptions?): Operation { id, created_at, details, 6 more }
    DELETE/v1/sandbox_vms/{sandbox_vm_id}
    List Agent Sandboxes
    client.sandboxVMs.list(SandboxVMListParams { project_id, cursor, limit, 4 more } query, RequestOptionsoptions?): Cursor<SandboxVM { id, created_at, endpoint_hostname, 13 more } >
    GET/v1/sandbox_vms
    Pause Agent Sandbox
    client.sandboxVMs.pause(stringsandboxVMID, RequestOptionsoptions?): Operation { id, created_at, details, 6 more }
    POST/v1/sandbox_vms/{sandbox_vm_id}/pause
    Resume Agent Sandbox
    client.sandboxVMs.resume(stringsandboxVMID, RequestOptionsoptions?): Operation { id, created_at, details, 6 more }
    POST/v1/sandbox_vms/{sandbox_vm_id}/resume
    Restart Agent Sandbox
    client.sandboxVMs.restart(stringsandboxVMID, RequestOptionsoptions?): Operation { id, created_at, details, 6 more }
    POST/v1/sandbox_vms/{sandbox_vm_id}/restart
    ModelsExpand Collapse
    SandboxVM { id, created_at, endpoint_hostname, 13 more }

    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.

    formatdate-time
    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.

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

    Whether the Agent Sandbox’s sandboxes can run.

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

    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<string>

    Tags attached to the Agent Sandbox.

    updated_at: string

    When the Agent Sandbox was last updated.

    formatdate-time
    vpc_id: string | null

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

    SandboxVMList { items, pagination }
    items: Array<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 | 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.

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

    Whether the Agent Sandbox’s sandboxes can run.

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

    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<string>

    Tags attached to the Agent Sandbox.

    updated_at: string

    When the Agent Sandbox was last updated.

    formatdate-time
    vpc_id: string | null

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

    Sandbox VMsCost

    Estimate Agent Sandbox Create Cost
    client.sandboxVMs.cost.create(CostCreateParams { name, project_id, region, 3 more } body, RequestOptionsoptions?): CostQuote { currency, monthly_total, priced_at, 3 more }
    POST/v1/sandbox_vms/cost