Skip to main content
GET
/
user
/
keys
List your public keys
curl --request GET \
  --url https://gogs.example.com/api/v1/user/keys \
  --header 'Authorization: <api-key>'
[
  {
    "id": 123,
    "key": "<string>",
    "url": "<string>",
    "title": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Response

200 - application/json

Success

id
integer
key
string
url
string
title
string
created_at
string<date-time>