cURL
curl --request POST \ --url https://gogs.example.com/api/v1/admin/users/{username}/keys \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "title": "<string>", "key": "<string>" } '
{ "id": 123, "key": "<string>", "url": "<string>", "title": "<string>", "created_at": "2023-11-07T05:31:56Z" }
Requires the authenticated user to be a site administrator.
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.
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Username
Created