GET/repos/{owner}/{repo}/keys

List deploy keys for a repository

Lists the deploy keys associated with a repository. Use page and per_page to paginate the results; each entry contains key details and its access mode.

4 parameters
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.
per_pageintegeroptional
The number of results per page, up to 100. Defaults to 30 when omitted.
Default:30
pageintegeroptional
The page number of results to fetch. Defaults to 1 when omitted.
Default:1

1 status code
200Returns an array of deploy key objects, each containing the key, title, verification status, creation time, and access mode.
idintegerrequired
keystringrequired
urlstringrequired
titlestringrequired
verifiedbooleanrequired
created_atstringrequired
read_onlybooleanrequired
added_bystringoptional
last_usedstringoptional
enabledbooleanoptional

Error handling

The owner path parameter and repo path parameter must identify a repository with deploy keys; per_page accepts at most 100, and page and per_page default to 1 and 30 respectively when omitted. Use page and per_page to paginate the results.