Repo Deploy Keys API
List
GET /repos/:owner/:repo/keys
Response
[
{
"id": 1,
"key": "ssh-rsa AAA...",
"url": "https://api.github.com/user/keys/1",
"title": "octocat@octomac"
}
]
Get
GET /repos/:owner/:repo/keys/:id
Response
{
"id": 1,
"key": "ssh-rsa AAA...",
"url": "https://api.github.com/user/keys/1",
"title": "octocat@octomac"
}
Create
POST /repos/:owner/:repo/keys
{
"title": "octocat@octomac",
"key": "ssh-rsa AAA..."
}
Response
{
"id": 1,
"key": "ssh-rsa AAA...",
"url": "https://api.github.com/user/keys/1",
"title": "octocat@octomac"
}
Edit
PATCH /repos/:owner/:repo/keys/:id
{
"title": "octocat@octomac",
"key": "ssh-rsa AAA..."
}
Response
{
"id": 1,
"key": "ssh-rsa AAA...",
"url": "https://api.github.com/user/keys/1",
"title": "octocat@octomac"
}
Delete
DELETE /repos/:owner/:repo/keys/:id
Response