---
title: "List public SSH keys for the authenticated user"
method: GET
path: "/user/keys"
tags: ["users"]
---

# List public SSH keys for the authenticated user

`GET /user/keys`

Lists the public SSH keys for the authenticated user's GitHub account.

OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint.

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- Key[]
  - `key` string, required
  - `id` integer, required
  - `url` string, required
  - `title` string, required
  - `created_at` string, date-time, required
  - `verified` boolean, required
  - `read_only` boolean, required
  - `last_used` string, date-time, nullable

## Other responses

- `304` — Not modified
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/revisions/80850db290cd/schema)
