CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 31 Aug 2025 18:08:58 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20161114190030
location: https://web.archive.org/web/20161114190030/https://developer.github.com/v3/repos/keys/
server-timing: captures_list;dur=0.497781, exclusion.robots;dur=0.019766, exclusion.robots.policy;dur=0.010248, esindex;dur=0.010531, cdx.remote;dur=34.515925, LoadShardBlock;dur=117.012274, PetaboxLoader3.datanode;dur=82.780730
x-app-server: wwwb-app217
x-ts: 302
x-tr: 187
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app217; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 31 Aug 2025 18:08:59 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-last-modified: Mon, 14 Nov 2016 05:40:40 GMT
x-archive-orig-access-control-allow-origin: *
x-archive-orig-expires: Mon, 14 Nov 2016 19:10:30 GMT
x-archive-orig-cache-control: max-age=600
x-archive-orig-x-github-request-id: 17EB2F1F:22F3:427C39D:582A09CE
x-archive-orig-content-length: 35586
x-archive-orig-accept-ranges: bytes
x-archive-orig-date: Mon, 14 Nov 2016 19:00:30 GMT
x-archive-orig-via: 1.1 varnish
x-archive-orig-age: 0
x-archive-orig-connection: close
x-archive-orig-x-served-by: cache-sjc3623-SJC
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-x-timer: S1479150030.872933,VS0,VE69
x-archive-orig-vary: Accept-Encoding
x-archive-orig-x-fastly-request-id: fb04bba9bc915f793e160d5d43a055fdd0ef7041
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 14 Nov 2016 19:00:30 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 19 Jun 2011 04:26:12 GMT", ; rel="prev memento"; datetime="Sat, 30 Jul 2016 15:06:54 GMT", ; rel="memento"; datetime="Mon, 14 Nov 2016 19:00:30 GMT", ; rel="next memento"; datetime="Sat, 04 Feb 2017 21:29:17 GMT", ; rel="last memento"; datetime="Thu, 14 Aug 2025 07:08:49 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: ARCHIVEIT-771-QUARTERLY-JOB248887-20161114-00001/ARCHIVEIT-771-QUARTERLY-JOB248887-20161114185847266-00018.warc.gz
server-timing: captures_list;dur=0.933256, exclusion.robots;dur=0.030190, exclusion.robots.policy;dur=0.014957, esindex;dur=0.015713, cdx.remote;dur=23.315694, LoadShardBlock;dur=376.298640, PetaboxLoader3.datanode;dur=365.041707, PetaboxLoader3.resolve;dur=239.718433, load_resource;dur=309.550863
x-app-server: wwwb-app217
x-ts: 200
x-tr: 823
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Deploy Keys | GitHub Developer Guide
Deploy Keys
List deploy keys
GET /repos/:owner/:repo/keys
Response
Status: 200 OK
Link: <https://api.github.com/resource?page=2>; rel="next",
<https://api.github.com/resource?page=5>; rel="last"
[
{
"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
}
]
Get a deploy key
GET /repos/:owner/:repo/keys/:id
Response
Status: 200 OK
{
"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
}
Add a new deploy key
POST /repos/:owner/:repo/keys
Parameters
Name | Type | Description |
---|---|---|
title |
string |
A name for the key. |
key |
string |
The contents of the key. |
read_only |
boolean |
If true , the key will only be able to read repository contents. Otherwise, the key will be able to read and write. |
Example
Here's how you can create a read-only deploy key:
{
"title": "octocat@octomac",
"key": "ssh-rsa AAA...",
"read_only": true
}
Response
Status: 201 Created
Location: https://api.github.com/repos/octocat/Hello-World/keys/1
{
"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
}
Edit a deploy key
Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead.
Remove a deploy key
DELETE /repos/:owner/:repo/keys/:id
Response
Status: 204 No Content