v44

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-20129390589.6 KB
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.

hostnamestring required
portinteger required
last_successful_key_update_atinteger

Unix timestamp.

last_attempted_key_update_atinteger

Unix timestamp.

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
}