---
title: "show"
method: GET
path: "/api/v1/repos/{user_id}/{repo}/gpg_keys/{keyname}.json"
tags: ["gpg_keys"]
---

# show

`GET /api/v1/repos/{user_id}/{repo}/gpg_keys/{keyname}.json`

## Request

- Base URL: `https://packagecloud.io`
- URL: `https://packagecloud.io/api/v1/repos/{user_id}/{repo}/gpg_keys/{keyname}.json`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/cstrahan/apis/packagecloud-api/docs/api/v1/repos/:user_id/:repo/gpg_keys/:keyname.json/get.ts> (a function with typed inputs; its response is checked against the schema)

View a single GPG Key

**Example request:**

```
curl -X GET https://packagecloud.io/api/v1/repos/username/reponame/gpg_keys/username-reponame-85D7FBF915DFCBC6.pub.gpg.json
```

## Path parameters

- `user_id` string, required
- `repo` string, required
- `keyname` string, required

## Response `200`

<GPGKey> The GPG Key object representing the requested key.

- GPGKey
  - `name` string: The name of the GPG key.
  - `fingerprint` string: The GPG key's fingerprint.
  - `keytype` string: The GPG key type ('repo' for repository signing keys or 'package' for package signing keys).
  - `self` string: The URL for this object.
  - `destroy_url` string: The URL that can be used to delete this GPG key.
  - `download_url` string: The URL that can be used to download the GPG public key data.

---

[API](https://skmtc.dev/cstrahan/apis/packagecloud-api.md) - [All operations](https://skmtc.dev/cstrahan/apis/packagecloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cstrahan/apis/packagecloud-api/revisions/9744ac4cffc2?raw)
