Skip to main content
POST
Configure sandbox SSH key

Authorizations

Authorization
string
header
required

Boat bearer token in the form boat_.... Service API keys authenticate sandbox operations.

Path Parameters

sandboxId
string
required

Public Sandbox id returned by create/list/get sandbox calls.

Pattern: ^bx_[23456789abcdefghjkmnpqrstuvwxyz]{8}$

Body

application/json
key
string
required

Public SSH key in OpenSSH format. Private keys are rejected.

Example:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... user@host"

Response

SSH key setup result.

ok
boolean
required
Example:

true

type
string
required

Stable success envelope discriminator added by v1.

success
boolean
machineIp
string | null
sshUser
string
Example:

"user"

sshEndpoint
string | null

Public IPv4 host:port that forwards to the sandbox SSH server, set only when the machine has no public IPv4 of its own. Connect with ssh -p <port> user@<host>.

Example:

"203.0.113.10:22001"

hostKey
string

The sandbox SSH server's public host key. Pin it in known_hosts.

Example:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA..."