---
title: "List access tokens"
method: GET
path: "/users/{username}/tokens"
tags: ["Users"]
---

# List access tokens

`GET /users/{username}/tokens`

Requires basic authentication.

## Path parameters

- `username` string, required

## Response `200`

Success

- AccessToken[]
  - `name` string
  - `sha1` string

## 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)
