---
title: "List public keys for a user"
method: GET
path: "/users/{username}/keys"
tags: ["Users"]
---

# List public keys for a user

`GET /users/{username}/keys`

## Path parameters

- `username` string, required

## Response `200`

Success

- PublicKey[]
  - `id` integer
  - `key` string
  - `url` string
  - `title` string
  - `created_at` string, date-time

## Other responses

- `404` — Resource not found.

---

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