---
title: "List commands on a node (paged)"
method: GET
path: "/preview/nodes/{name}/commands"
tags: ["nodes"]
---

# List commands on a node (paged)

`GET /preview/nodes/{name}/commands`

## Request

- Base URL: `https://autoresearch.sfcompute.com`
- URL: `https://autoresearch.sfcompute.com/preview/nodes/{name}/commands`
- Auth: HTTP bearer

List a node's detached commands, newest first: {command_id, state, env (names only), started_at, ended_at?, exit_code?, result?, note?}. A `lost` row's `note` says that no exit status was recorded and whether the node's disk is still there; get_command carries the full disclosure. `result` is each command's declared verdict ($GMN_RESULT_PATH), so comparing runs is this one call. The listing is the newest 100 (a note says when older history was clipped; get_command still reads any command by id). These are the commands started with run_command(detach:true), the ones that can still be interrogated with get_command. Command lines are NOT echoed back (they're recorded encrypted, as an operator-visible debugging record, and shown to your own org on the mission page's Commands tab - unless your organization's retention policy declines the capture, see get_retention); track what a command_id is from your own run_command call; env values are never echoed anywhere, names only. Works against stopped nodes and never wakes one.

## Path parameters

- `name` string, required: Node name (from `list_nodes`).

## Query parameters

- `cursor` string: Opaque page cursor: the `next_cursor` a previous response returned. Omit for the first page.
- `limit` integer: Rows per page. Clamped to the range shown.
- `workspace` string

## Response `200`

The capability's JSON result.

- List: The list envelope every paging endpoint returns.
  - `items` Result[], required
    - `object` string: The resource type, when the result is one resource.
  - `next_cursor` string: Pass as ?cursor= for the next page. Absent on the last page. Opaque: never parse it.
  - `object` 'list', required

## Other responses

- `400`: Malformed request: bad JSON, a parameter that does not parse, or a value outside its range. Code `invalid`.
- `401`: No bearer token, or one this API cannot verify. Code `unauthenticated`.
- `403`: Authenticated, but the token's scopes or the account's role do not reach this operation. The message names the scope word to request. Code `forbidden`.
- `404`: No such route. Code `not_found`; the body names the OpenAPI document.
- `422`: A well-formed request the platform declined: no such node, a cap reached, a state that forbids the move. The message says which, and what to do instead. Code `refused`.
- `429`: Over this door's per-customer budget. Wait `Retry-After` seconds. Code `rate_limited`.
- `500`: Our fault. Retry; if it persists, quote the request-id. Code `internal`.

---

[API](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api.md) · [All operations](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/revisions/f88dcb70ac6c?raw)
