---
title: "List the org's sandboxes"
method: GET
path: "/api/v0beta1/rigs"
tags: ["Sandboxes"]
---

# List the org's sandboxes

`GET /api/v0beta1/rigs`

## Request

- Base URL: `https://app.amika.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://app.amika.dev/api/v0beta1/rigs`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `wos-session`

## Query parameters

- `host_id` string: If set, only return rigs on this one of the organization's own hosts.
- `live_state` 'true' | 'false': Set to `false` to skip reading each active rig's live state from its provider. Statuses are then derived from stored state, and rows whose status is unconfirmed carry `live_state_pending: true`.

## Response `200`

Sandboxes.

- Sandbox[]
  - `id` string, required
  - `user_id` string, nullable, required
  - `org_id` string, required
  - `name` string, required
  - `provider` string, nullable, required
  - `provider_sandbox_id` string, nullable, required
  - `amika_opencode_web` string, nullable, required
  - `repo_name` string, nullable, required
  - `repo_provider` string, nullable, required
  - `repo_id` string, nullable, required
  - `repo_url` string, nullable, required
  - `branch` string, nullable, required
  - `commit_hash` string, nullable, required
  - `snapshot` string, nullable, required
  - `snapshot_name` string, nullable
  - `sandbox_preset` string, nullable
  - `sandbox_size` string, nullable
  - `sandbox_size_config` object, nullable
    - `name` string, nullable, required
    - `vcpus` number, required
    - `memoryGib` number, required
    - `diskGib` number, required
    - `diskGrowOnly` boolean, required
  - `github_auth_mode` 'pat' | 'app_token' | 'null', nullable
  - `github_credential_provisioned` boolean, nullable
  - `error_message` string, nullable
  - `current_session_id` string, nullable, required
  - `services` object[], nullable, required
    - `name` string, required
    - `url` string, required
    - `hostPort` integer, required
    - `containerPort` integer, required
    - `protocol` string, required
    - `kind` 'system' | 'user'
  - `state` string
  - `status` 'creating' | 'starting' | 'running' | 'stopping' | 'stopped' | 'suspending' | 'suspended' | 'snapshotting' | 'failed' | 'unknown'
  - `setup_status` 'ok' | 'setup-running' | 'git-failed' | 'setup-failed' | 'sys-setup-failed' | 'null', nullable
  - `live_state_pending` boolean
  - `urls_expire_at` union
    - string
    - string, date-time
    - unknown
  - `secret_names` string[]
  - `mounted_secrets` object[]
    - `name` string, required
    - `scope` 'user' | 'org', required
    - `managed` boolean, required
    - `credential_type` 'api_key' | 'oauth' | 'null', nullable, required
    - `provider` string, nullable, required
  - `resolved_agent_credentials` union[]
    - union
      - object
        - `kind` string, required
        - `outcome` 'resolved', required
        - `name` string, required
        - `type` 'oauth' | 'api_key', required
        - `source` string, required
      - object
        - `kind` string, required
        - `outcome` 'skipped', required
        - `reason` 'request:none' | 'no_user_credential', required
  - `agent_credentials` object[]
    - `kind` string, required
    - `name` string, nullable, required
    - `scope` 'user' | 'org' | 'null', nullable, required
    - `credential_type` 'api_key' | 'oauth' | 'null', nullable, required
    - `inject_target` string, nullable, required
  - `created_by` object, nullable
    - `name` string, nullable, required
    - `email` string, nullable, required
  - `agent_cwd` string, nullable
  - `ssh_key_status` 'ready' | 'no-key' | 'stale-keys' | 'unknown'
  - `origin` string, nullable
  - `host_id` string, nullable
  - `created_at` union, required
    - string
    - string, date-time
  - `updated_at` union, required
    - string
    - string, date-time

## Other responses

- `401`: Error
- `403`: Error

## Changes

- **2026-10-29** `86f031a957c1`: 2 info
  - added the new optional `query` request parameter `live_state`
  - added the optional property `items/live_state_pending` to the response with the `200` status
- **2026-10-03** `a122301d00e0`: 2 warning
  - removed the optional property `items/has_workflow` from the response with the `200` status
  - added the new `stopped` enum value to the `items/status` response property for the response status `200`
- **2026-09-30** `f9bd53246a8c`: 4 info
  - added the new optional `query` request parameter `host_id`
  - added the optional property `items/agent_credentials` to the response with the `200` status
  - added the optional property `items/host_id` to the response with the `200` status
  - added the optional property `items/sandbox_size_config` to the response with the `200` status
- **2026-09-21** `4d4f02352fdb`: 1 breaking, 1 info
  - removed the required property `items/provider_url` from the response with the `200` status
  - added the optional property `items/services/items/kind` to the response with the `200` status
- **2026-09-16** `25ba06b40ead`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/amika/apis/amika-api/changes/api/v0beta1/rigs/get.md)

---

[API](https://skmtc.dev/amika/apis/amika-api.md) - [All operations](https://skmtc.dev/amika/apis/amika-api/llms.txt) - [OpenAPI document](https://skmtc.dev/amika/apis/amika-api/revisions/86f031a957c1?raw)
