octokit.rest

Get a deploy key

Parameters

string The token will be passed in the authorization header.

string

string

integer key_id parameter

Request

GET https://api.github.com/repos///keys/
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest


Example Response

Status: 200
{
  "id": 1,
  "key": "ssh-rsa AAA...",
  "url": "https://api.github.com/repos/octocat/Hello-World/keys/1",
  "title": "octocat@octomac",
  "verified": true,
  "created_at": "2014-12-10T15:53:42Z",
  "read_only": true
}

See documentation on GitHub developer guides