GET
/
api
/
v0
/
instances
/
{instance_id}
/
ssh
/
show ssh-keys
curl --request GET \
  --url https://console.vast.ai/api/v0/instances/{instance_id}/ssh/ \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "ssh_keys": "[{\"id\": 1, \"name\": \"my-key\", \"public_key\": \"ssh-rsa AAAA...\"}]"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

instance_id
integer
required

The ID of the instance to retrieve SSH keys for.

Response

Success response with SSH keys

success
boolean
Example:

true

ssh_keys
string

JSON string containing array of SSH key objects

Example:

"[{\"id\": 1, \"name\": \"my-key\", \"public_key\": \"ssh-rsa AAAA...\"}]"