> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/agent-sandbox-runs/openapi.json](/docs/api/agent-sandbox-runs/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Agent sandbox runs: List your sandbox runs

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [Agent sandbox runs](/docs/api/agent-sandbox-runs.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## List your sandbox runs

`GET /v1/agent-sandbox-runs` - operationId `agent-sandbox-runs.list`

| Permission | Rate limit |
| --- | --- |
| Any workspace member except a Network member | 12,000 requests a minute per API key |

Your runs in this workspace, newest first, in the canonical list envelope: `data` is the array of runs and
`pagination.hasMore` is true when older runs follow. `active=true` lists only live runs (queued,
starting, running or stopping). `limit` is 1 to 50 (default 20), and `cursor` takes the previous page's
`nextCursor`.

Errors:

- `400 validation_failed`: `limit` is out of range or `cursor` is not a `nextCursor` from this list.
- `404 not_found`: a feature is off.
- `503 service_unavailable` with `Retry-After`: the agent work settings could not be read.

Needs the `agent_sandboxes` feature on your workspace. Until it is on, calls answer 404. Needs the `agent_work` feature on your workspace. Until it is on, calls answer 404.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/agent-sandbox-runs/GET/v1/agent-sandbox-runs)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `active` | query | boolean | no | True lists only live runs (queued, starting, running or stopping). |
| `limit` | query | integer (int32) | no | 1 to 50, default 20. |
| `cursor` | query | string | no | The previous page's `nextCursor`, unchanged, with the same `active`. |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Response 200

`data` is a list of `AgentSandboxRun`. Each item has these fields. The response also carries `pagination`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | `asr_` and 32 lowercase hex characters. |
| `agent` | string | The agent the run uses: `claude`, `codex`, `antigravity`, `opencode`, `grok` or `cursor`. |
| `status` | string | `queued`, `starting`, `running`, `stopping` or `ended`. |
| `endReason` | string | Why it ended (`queue_empty`, `stopped`, `usage_limit`, `max_length`, `credits_used`, `agent_logged_out`, `answer_refused` or `failed`), set once it is `stopping`; null before. |
| `trigger` | string | `manual` or `automatic`. |
| `campaignId` | integer (int64) | The campaign it works, or null: a run without a campaign covers the whole workspace. |
| `kinds` | array of string | The kinds it works, or null for every kind the workspace has on My agent. |
| `createdAt` | string (date-time) |  |
| `startedAt` | string (date-time) |  |
| `endedAt` | string (date-time) |  |
| `stopRequestedAt` | string (date-time) | When the person asked to stop the run (cancel); null until then. The status changes on the run supervisor's next pass. |
| `accepted` | integer (int32) | Answers accepted so far. |
| `rejected` | integer (int32) | Answers rejected so far. |
| `waiting` | integer (int32) | Items in the run's scope still waiting now; 0 once it ended. |
| `minutes` | integer (int32) | Minutes run so far while it is live; the billed minutes once it ended. |
| `credits` | number (double) | Credits for those minutes so far while it is live; the credits charged once it ended. |
| `confinement` | string | `full`, `partial` or `none`, or null until the run reports it. |
| `estimate` | AgentSandboxEstimate | What a run is expected to take and the most it can cost. |

### Request

```bash
curl -X GET "https://api.ken.so/v1/agent-sandbox-runs?limit=20" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID"
```

### Example response

```json
{
  "success": true,
  "data": [
    {
      "id": "asr_2bX9kq4LmR7tW3vY",
      "agent": "claude",
      "status": "queued",
      "endReason": "string",
      "trigger": "manual",
      "campaignId": 812,
      "kinds": [
        "string"
      ],
      "createdAt": "2026-09-23T15:02:11Z",
      "startedAt": "2026-09-23T15:02:11Z",
      "endedAt": "2026-09-23T15:02:11Z",
      "stopRequestedAt": "2026-09-23T15:02:11Z",
      "accepted": 1,
      "rejected": 1,
      "waiting": 1,
      "minutes": 1,
      "credits": 0.5,
      "confinement": "full",
      "estimate": {
        "waitingItems": 1,
        "expectedMinutes": 1,
        "ceilingMinutes": 1,
        "ceilingCredits": 0.5,
        "creditsPerHour": 0.5
      }
    }
  ],
  "pagination": {
    "nextCursor": "eyJpZCI6ODE1fQ",
    "hasMore": true,
    "total": 1,
    "totalCount": 1,
    "isTotalCapped": true
  }
}
```

## Types

Each named type the tables above use, nested ones included.

### AgentSandboxEstimate

What a run is expected to take and the most it can cost.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `waitingItems` | integer (int32) | no | The items the run would work: waiting now, or for a stored run, answered plus waiting plus held. |
| `expectedMinutes` | integer (int32) | no | Minutes the run is expected to take. |
| `ceilingMinutes` | integer (int32) | no | Minutes the run is stopped at. |
| `ceilingCredits` | number (double) | no | The most the run can cost, in credits: the hold taken when it starts. |
| `creditsPerHour` | number (double) | no | Credits an hour of box time costs. |
