GET
/
v1
/
devboxes
import Runloop from '@runloop/api-client';

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

async function main() {
  // Automatically fetches more pages as needed.
  for await (const devboxView of client.devboxes.list()) {
    console.log(devboxView.id);
  }
}

main();
{
  "devboxes": [
    {
      "id": "<string>",
      "name": "<string>",
      "status": "provisioning",
      "create_time_ms": 123,
      "end_time_ms": 123,
      "blueprint_id": "<string>",
      "snapshot_id": "<string>",
      "metadata": {},
      "failure_reason": "out_of_memory",
      "shutdown_reason": "api_shutdown",
      "launch_parameters": {
        "launch_commands": [
          "<string>"
        ],
        "resource_size_request": "X_SMALL",
        "keep_alive_time_seconds": 123,
        "available_ports": [
          123
        ],
        "after_idle": {
          "idle_time_seconds": 123,
          "on_idle": "shutdown"
        },
        "custom_cpu_cores": 123,
        "custom_gb_memory": 123
      },
      "capabilities": [
        "unknown"
      ]
    }
  ],
  "has_more": true,
  "total_count": 123,
  "remaining_count": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

status
enum<string>

Filter by status

Available options:
provisioning,
initializing,
running,
suspending,
suspended,
resuming,
failure,
shutdown
limit
integer

The limit of items to return. Default is 20.

starting_after
string

Load the next page of data starting after the item with the given ID.

Response

200 - application/json
OK
devboxes
object[]
required

List of devboxes matching filter.

A Devbox represents a virtual development environment. It is an isolated sandbox that can be given to agents and used to run arbitrary code such as AI generated code.

has_more
boolean
required
total_count
integer
required
remaining_count
integer
required

Was this page helpful?