v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Instances

show ssh-keys

Retrieves the SSH keys associated with a specific instance.

CLI Usage: vastai show ssh-keys <instance_id>

get/api/v0/instances/{instance_id}/ssh/

Path parameters

instance_idinteger required

The ID of the instance to retrieve SSH keys for.

Response

Success response with SSH keys

successboolean
ssh_keysstring

JSON string containing array of SSH key objects

Example response

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