Skip to main content
POST
Open an SSH connection to a Coding sandbox

Path Parameters

id
string<uuid>
required

Coding sandbox (pod) id.

Body

application/json
public_key
string
required

One OpenSSH public key line: ed25519, ECDSA, a security key (sk-...), or RSA of 2048 bits or more.

Example:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... me@laptop"

Response

Ticket issued.

ticket
string

Single-use ticket.

ttl_seconds
integer
Example:

60

path
string

Append to wss://compute.x402layer.cc to open the SSH stream.

Example:

"/pods/screen/<ticket>"

user
string

The user you log in as.

Example:

"node"