---
title: "GET /v1/sandboxes/{id}/cmd/{cmd_id}"
method: GET
path: "/v1/sandboxes/{id}/cmd/{cmd_id}"
tags: ["Sandboxes"]
---

# GET /v1/sandboxes/{id}/cmd/{cmd_id}

`GET /v1/sandboxes/{id}/cmd/{cmd_id}`

## Request

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

## Path parameters

- `id` string, required
- `cmd_id` string, required

## Response `200`

Command snapshot

- CmdResponse: `@vercel/sandbox` envelope: `{ command: {...} }`.
  - `command` CmdInner, required: Inner `command` object — matches the SDK's zod validator exactly. `exitCode` is `null` until the command terminates; `startedAt` is Unix epoch milliseconds.
    - `args` string[], required
    - `cwd` string, required
    - `exitCode` integer, nullable
    - `id` string, required
    - `name` string, required
    - `sandboxId` string, required
    - `startedAt` integer, required

## Other responses

- `404`: Sandbox or command not found

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/:id/cmd/:cmd_id/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)
