# List SSH keys

> The SSH keys of the account of the key, then the keys of the VMs of its tenants.

`GET /v1/ssh-keys`

```bash curl
curl -X GET "https://api.shako.dev/v1/ssh-keys" \
  -H "Authorization: Bearer $SHAKO_API_KEY"
```

```python Python
import os

import requests

response = requests.get(
    "https://api.shako.dev/v1/ssh-keys",
    headers={"Authorization": f"Bearer {os.environ['SHAKO_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript JavaScript
const response = await fetch("https://api.shako.dev/v1/ssh-keys", {
  method: "GET",
  headers: { Authorization: `Bearer ${process.env.SHAKO_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
```

```json 200 (excerpt)
{
  "data": [
    {
      "name": "laptop",
      "fingerprint": "SHA256:o0k2...",
      "key": "ssh-ed25519 AAAAC3Nza... laptop",
      "scope": "account",
      "tenant": null,
      "vm": null,
      "email": "maya@example.com",
      "mine": true
    }
  ]
}
```

Authenticate with `Authorization: Bearer <API key>` on `https://api.shako.dev`. Role: any key.

## Response

200 with {"data": [...]}: a list of [the SSH key object](https://shako.dev/api/objects/key-view.md).

The errors: https://shako.dev/api/errors.md. All the endpoints of Caller: https://shako.dev/api/caller.md.
