Instances
Get instance SSH info
⚠️ This endpoint is in public preview.
Retrieve SSH connection details for an instance.
get/preview/v2/instances/{id}/ssh
Path parameters
idstring required
A resource path like 'sfc:instance:acme:prod:my-instance' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
Example:inst_k3R-nX9vLm7Qp2Yw5Jd8F
Response
SSH connection details.
Example response
{
"hostname": "24.125.89.203",
"port": 22,
"host_keys": [
{
"key_type": "ssh-ed25519",
"key": "AAAAC3NzaC1lZDI1NTE5AAAAI..."
}
],
"last_successful_key_update_at": 1738972800,
"last_attempted_key_update_at": 1738972800
}