---
title: "Get a deploy key"
method: GET
path: "/repos/{owner}/{repo}/keys/{key_id}"
tags: ["repos"]
---

# Get a deploy key

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

## Path parameters

- `owner` string, required
- `repo` string, required
- `key_id` integer, required

## Response `200`

Response

- DeployKey — An SSH key granting access to a single repository.
  - `id` integer, required
  - `key` string, required
  - `url` string, required
  - `title` string, required
  - `verified` boolean, required
  - `created_at` string, required
  - `read_only` boolean, required
  - `added_by` string, nullable
  - `last_used` string, date-time, nullable
  - `enabled` boolean

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
