---
title: "Get a deploy key"
method: GET
path: "/repos/{owner}/{repo}/keys/{id}"
tags: ["Collaborators and Deploy Keys"]
---

# Get a deploy key

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

## Path parameters

- `owner` string, required
- `repo` string, required
- `id` string, required

## Response `200`

Success

- DeployKey
  - `id` integer
  - `key` string
  - `url` string
  - `title` string
  - `created_at` string, date-time
  - `read_only` boolean

## Other responses

- `404` — Resource not found.

---

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