---
title: "Create temporary SSH access"
method: POST
path: "/v1/sessions/{id}/ssh"
---

# Create temporary SSH access

`POST /v1/sessions/{id}/ssh`

## Request

- Base URL: `https://assemble-vms-api.fly.dev`
- URL: `https://assemble-vms-api.fly.dev/v1/sessions/{id}/ssh`
- Auth: HTTP bearer

Request an expiring connection command for the same session VM. SSH processes operate outside managed-command coordination.

## Request body

- object
  - `expiresInMinutes` integer

## Response `201`

Temporary SSH grant; the command contains a credential.

- SshAccess
  - `id` string, uuid, required
  - `command` string, required: Temporary connection command containing access credentials. Keep it out of shared logs.
  - `expiresAt` string, date-time, required

## Other responses

- `default`: Structured API error. HTTP 400 invalid request, 401 authentication, 404 missing resource, 409 conflict, 413 size limit, 429 quota, or 503 unavailable.

---

[API](https://skmtc.dev/assemble/apis/assemble-vms-api.md) - [All operations](https://skmtc.dev/assemble/apis/assemble-vms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/assemble/apis/assemble-vms-api/revisions/93f55a2e3de3?raw)
