---
title: "List SSH sessions"
method: GET
path: "/v1/machines/{machine_id}/ssh"
tags: ["Machine Lifecycle", "Machine SSH"]
---

# List SSH sessions

`GET /v1/machines/{machine_id}/ssh`

## Path parameters

- `machine_id` string, required

## Query parameters

- `limit` integer
- `cursor` string

## Headers

- `X-Dedalus-Org-Id` string

## Response `200`

OK

- SSHSessionListResponse
  - `items` SSHSessionResponse[], nullable, required
    - `connection` SSHConnection
      - `endpoint` string, required
      - `host_trust` SSHHostTrust
        - `host_pattern` string, required
        - `kind` 'cert_authority', required
        - `public_key` string, required
      - `port` integer, required
      - `ssh_username` string, required
      - `user_certificate` string
    - `created_at` string, date-time, required
    - `error_code` string
    - `error_message` string
    - `expires_at` string, date-time
    - `machine_id` string, required
    - `ready_at` string, date-time
    - `retry_after_ms` integer
    - `session_id` string, required
    - `status` 'wake_in_progress' | 'ready' | 'closed' | 'expired' | 'failed', required
  - `next_cursor` string

## Other responses

- `401` — Authentication required
- `403` — Forbidden
- `429` — Rate limited
- `503` — Dependency unavailable
- `default` — Error

## Changes

- **2026-05-12** `c756c361d33d` — 2 breaking, 1 warning
  - for the `path` request parameter `machine_id`, the minLength was increased from `0` to `4`
  - added the pattern `^dm-[a-z0-9]([a-z0-9-]*[a-z0-9])?$` to the `path` request parameter `machine_id`
  - for the `path` request parameter `machine_id`, the maxLength was set to `253`
- **2026-04-01** `6a258bad8212` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api/changes/v1/machines/:machine_id/ssh/get.md)

---

[API](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api.md) · [All operations](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dedalus-labs/dedalus-cloud-services-api/revisions/e76f392b92b7/schema)
