Get a deploy key
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/keys/{id} \
--header 'Authorization: <api-key>'{
"id": 123,
"key": "<string>",
"url": "<string>",
"title": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"read_only": true
}Collaborators and deploy keys
Get a deploy key
GET
/
repos
/
{owner}
/
{repo}
/
keys
/
{id}
Get a deploy key
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/keys/{id} \
--header 'Authorization: <api-key>'{
"id": 123,
"key": "<string>",
"url": "<string>",
"title": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"read_only": true
}Authorizations
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Path Parameters
Repository owner
Repository name
Key ID