# Get a deploy key

From **GitHub v3 REST API**.

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

Get a deploy key

## Parameters

### `owner`

- Location: path
- Required: true
- Type: `string`

### `repo`

- Location: path
- Required: true
- Type: `string`

### `key_id`

- Location: path
- Required: true
- Type: `integer`

key_id parameter

## Responses

### `200`

Response

### `application/json`

- Type: `object`

An SSH key granting access to a single repository.

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

```json
{"description":"An SSH key granting access to a single repository.","properties":{"created_at":{"type":"string"},"id":{"type":"integer"},"key":{"type":"string"},"read_only":{"type":"boolean"},"title":{"type":"string"},"url":{"type":"string"},"verified":{"type":"boolean"}},"required":["id","key","url","title","verified","created_at","read_only"],"title":"Deploy Key","type":"object"}
```

### `404`

Resource not found

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/keys/{key_id}
```
