# List deploy keys

From **GitHub v3 REST API**.

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

List deploy keys

## Parameters

### `owner`

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

### `repo`

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

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

Response

#### Headers

##### `Link`

- Type: `string`

- Example: `<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"`

### `application/json`

- Type: `array`

```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
{"items":{"$ref":"#/components/schemas/deploy-key"},"type":"array"}
```

## Request examples

### cURL

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