GET
/repos/{owner}/{repo}/keys/{key_id}Get a deploy key
Retrieves a specific deploy key associated with a repository. Use key_id to identify the key whose details you need.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The repository name without the `.git` extension. The name is not case sensitive.
key_idintegerrequired
The unique identifier of the deploy key.
200Returns the deploy key object, including its ID, key, title, verification status, creation time, and access mode.
idintegerrequired
keystringrequired
urlstringrequired
titlestringrequired
verifiedbooleanrequired
created_atstringrequired
read_onlybooleanrequired
added_bystringoptional
last_usedstringoptional
enabledbooleanoptional
404Returned when the requested resource cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned when the deploy key cannot be found in the specified repository. The owner path parameter and repo path parameter must identify the repository, and the key_id path parameter must identify its deploy key.