cURL
curl --request GET \ --url https://gogs.example.com/api/v1/users/{username}/tokens \ --header 'Authorization: Basic <encoded-value>'
[ { "name": "<string>", "sha1": "<string>" } ]
Requires basic authentication.
Documentation IndexFetch the complete documentation index at: https://gogs.io/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://gogs.io/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Username
Success