---
title: "Create a direct WebSocket SSH session"
method: POST
path: "/api/v0beta1/sandboxes/{id}/ssh-sessions"
tags: ["Sandboxes"]
---

# Create a direct WebSocket SSH session

`POST /api/v0beta1/sandboxes/{id}/ssh-sessions`

## Path parameters

- `id` string, required

## Response `200`

One no-relay SSH transport descriptor.

- DirectWebSocketSshSessionResponse
  - `session_id` string, required
  - `transport` 'direct_ws', required
  - `connect_url` string, uri, required
  - `connect_credential` string, required
  - `sandbox_id` string, required
  - `ssh_user` 'amika', required
  - `host_public_key` string, required

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `409` — Error
- `503` — Error

---

[API](https://skmtc.net/amika/apis/amika-api.md) · [All operations](https://skmtc.net/amika/apis/amika-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/amika/amika-api/revisions/664536fccd0e/schema)
