Skip to main content
GET
/
users
/
{username}
/
tokens
List access tokens
curl --request GET \
  --url https://gogs.example.com/api/v1/users/{username}/tokens \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "name": "<string>",
    "sha1": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

username
string
required

Username

Response

Success

name
string
sha1
string