> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.athenaintel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.athenaintel.com/_mcp/server.

# List the caller's SSH public keys

GET https://api.athenaintel.com/api/v0/me/ssh-keys

List the SSH public keys registered on the caller's Athena account. A registered key authenticates `ssh <computer_asset_id>@<gateway>` to every computer the caller can edit; keys are not tied to a workspace.

Reference: https://docs.athenaintel.com/api-reference/users/list-ssh-keys

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header

## Response

### 200

Successful Response

- `keys` (list of SshKeyOut, required) — Oldest first.

## Types

### SshKeyOut

One registered SSH public key.

- `created_at` (datetime, required) — When the key was registered.
- `fingerprint` (string, required) — ``SHA256:…`` fingerprint, as printed by ``ssh-keygen -lf``.
- `id` (string, required) — Key id (``ussk_…``); use it to delete the key.
- `key_type` (string, required) — Key algorithm, e.g. ``ssh-ed25519``.
- `label` (string, required) — Display label (defaults to the key comment).
- `public_key` (string, required) — The key in `<type> <base64>` form (no comment).
- `last_used_at` (datetime, optional, nullable) — When the key last authorized an SSH connection, if ever.

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "keys": [
    {
      "created_at": "2023-11-15T09:30:00Z",
      "fingerprint": "SHA256:AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdef=",
      "id": "ussk_3f9a1b2c-7d4e-4f8a-9c3b-1a2d3e4f5b6c",
      "key_type": "ssh-ed25519",
      "label": "work-laptop",
      "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7v9Xq1J7k8vZ9Xq1J7k8vZ9Xq1J7k8vZ9Xq1J7k8vZ9",
      "last_used_at": "2024-06-10T14:45:00Z"
    },
    {
      "created_at": "2022-05-20T16:00:00Z",
      "fingerprint": "SHA256:ZyXwVuTsRqPoNmLkJiHgFeDcBa9876543210fedcba=",
      "id": "ussk_7e8f9a0b-1c2d-3e4f-5a6b-7c8d9e0f1a2b",
      "key_type": "ssh-rsa",
      "label": "home-desktop",
      "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3v9Xq1J7k8vZ9Xq1J7k8vZ9Xq1J7k8vZ9Xq1J7k8vZ9",
      "last_used_at": null
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.athenaintel.com/api/v0/me/ssh-keys"

payload = {}
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/me/ssh-keys';
const options = {
  method: 'GET',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.athenaintel.com/api/v0/me/ssh-keys"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.athenaintel.com/api/v0/me/ssh-keys")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.athenaintel.com/api/v0/me/ssh-keys")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.athenaintel.com/api/v0/me/ssh-keys', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/me/ssh-keys");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/me/ssh-keys")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```