---
title: "List the nodes sandboxes can be placed on and the operator allow-list."
method: GET
path: "/v1/sandboxes/placement"
tags: ["Sandboxes"]
---

# List the nodes sandboxes can be placed on and the operator allow-list.

`GET /v1/sandboxes/placement`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/placement`
- Auth: HTTP bearer

## Response `200`

Sandbox placement state

- SandboxPlacementResponse: Sandbox placement state: the operator allow-list and every node.
  - `allowed_node_ids` integer[], nullable: Node ids allowed to run sandboxes. `null` = every node (the default); `0` is the control plane.
  - `nodes` PlacementNode[], required: Every node (control plane first) with its placement state.
    - `allowed` boolean, required: Allowed by the operator's sandbox placement settings.
    - `backends` NodeBackend[]: Every backend a sandbox can ask for, and whether this node can run it. A node that cannot says why, so a client can show the choice and its fix rather than hide it.
      - `available` boolean, required
      - `backend` 'docker' | 'firecracker' | 'microsandbox' | 'local', required: Which isolation backend a sandbox runs on (ADR-029, ADR-050). Docker containers, Firecracker microVMs and microsandbox (libkrun) microVMs coexist on the same host behind the same `SandboxProvider` seam; `routing::RoutingSandboxProvider` dispatches between them. `Local` is the dev-only fork-exec fallback.
      - `reason` string, nullable: Why the node cannot run it, and how to fix that when it can be fixed.
    - `dedicated` boolean: Labelled `temps.sh/role=dedicated`: automatic placement never picks it, but a sandbox that requests it by id or name may still run there when it is `eligible`. Always `false` for the control plane.
    - `eligible` boolean, required: Can take a new sandbox right now (allowed and active).
    - `id` integer, required: Node id; `0` for the control plane.
    - `is_control_plane` boolean, required
    - `live_sandboxes` integer, required: Sandboxes currently hosted on the node (not destroyed).
    - `name` string, required
    - `reason` string, nullable: Why the node is not eligible, when it isn't.
    - `status` string, required: Node status (`active`, `offline`, `draining`, …). Always `active` for the control plane.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-10-28** `b8d51a990805`: 1 info
  - added the optional property `nodes/items/backends` to the response with the `200` status
- **2026-10-09** `a2e5a08b4347`: 1 info
  - added the optional property `nodes/items/dedicated` to the response with the `200` status
- **2026-10-05** `4b228ebed583`: 1 info
  - endpoint added
- **2026-10-05** `63a80791dc58`: 1 breaking
  - api path removed without deprecation
- **2026-10-02** `185fa8a10fca`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/placement/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
