---
title: "Sandbox Access Command"
method: POST
path: "/api/v1/runs/{id}/ssh"
tags: ["Human-in-the-Loop"]
---

# Sandbox Access Command

`POST /api/v1/runs/{id}/ssh`

Creates a command for connecting to the run's sandbox environment. Daytona runs return a time-limited SSH command; Docker runs return a local docker exec command.

## Path parameters

- `id` string, required

## Request body

- SshAccessRequest — Request body for creating sandbox access for a sandbox-backed run.
  - `ttl_minutes` number, required — Time-to-live for time-limited access commands in minutes. Ignored by providers whose commands are not time-limited.

## Response `201`

Sandbox access command created

- SshAccessResponse — Response containing a command for connecting to the sandbox.
  - `command` string, required — Command to connect to the sandbox.

## Other responses

- `404` — Run not found
- `409` — Run has no active sandbox or provider does not support access commands

---

[API](https://skmtc.net/fabro-sh/apis/fabro-run-api.md) · [All operations](https://skmtc.net/fabro-sh/apis/fabro-run-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fabro-sh/fabro-run-api/versions/bee030053823/schema)
