---
title: "List SSH keys"
description: "Lists the SSH public keys that sign in to the account shell at ssh cool.computer."
canonical: "https://www.cool.computer/docs/api-reference/authentication/list-ssh-keys"
---
# List SSH keys

> Lists the SSH public keys that sign in to the account shell at ssh cool.computer.

```http
GET https://api.cool.computer/api/ssh-keys
```

Lists the SSH public keys that sign in to the account shell at ssh cool.computer.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Responses

- `200`: The account's SSH keys.
  - `application/json` (object)
    - `ssh_keys` (array of object, required)
      - `id` (integer, required)
      - `fingerprint` (string, required)
      - `algorithm` (string, required)
      - `created_at` (string, required)
      - `last_used_at` (string)
      - `current` (boolean): The key that signed in the session making this request.
- `401`: Unauthorized.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl "https://api.cool.computer/api/ssh-keys" \
  -H "authorization: Bearer $TOKEN"
```
