---
title: "List SSH Public Keys"
method: GET
path: "/v0/users/{user_id}/keys"
tags: ["users"]
---

# List SSH Public Keys

`GET /v0/users/{user_id}/keys`

## Request

- Base URL: `https://api.pantheon.io`
- URL: `https://api.pantheon.io/v0/users/{user_id}/keys`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pantheon/apis/pantheon-public-api-service/docs/v0/users/:user_id/keys/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists all SSH public keys associated with the authenticated user's account.
These keys can be used for Git operations and SFTP access.

Returns a map where keys are SSH key UUIDs (fingerprints without colons)
and values are the full SSH public key strings in standard format:
"ssh-rsa AAAAB3... comment" or "ssh-ed25519 AAAAC3... comment"

## Path parameters

- `user_id` string, required

## Response `200`

- ListSSHKeysResponse: Example response: { "28107bd5a8612555538bfa962bc64e20": "ssh-rsa AAAAB3... user@example.com", "a3c4f8b9d2e1a5c6b7d8e9f0a1b2c3d4": "ssh-ed25519 AAAAC3... admin@host.com" }

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/pantheon/apis/pantheon-public-api-service.md) - [All operations](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/revisions/5d158d59f4c3?raw)
