v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Get a repository's key by id

get/repos/{owner}/{repo}/keys/{id}

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

idinteger required

id of the key to get

Response

DeployKey

created_atstring date-time

Created is the time when the deploy key was added

fingerprintstring

Fingerprint is the key's fingerprint

idinteger

ID is the unique identifier for the deploy key

keystring

Key contains the actual SSH key content

key_idinteger

KeyID is the associated public key ID

read_onlyboolean

ReadOnly indicates if the key has read-only access

titlestring

Title is the human-readable name for the key

urlstring

URL is the API URL for this deploy key