---
title: "Get the workspace system GPG public key(s)"
method: GET
path: "/workspaces/{workspace}/settings/gpg/public-key"
tags: ["Workspaces"]
---

# Get the workspace system GPG public key(s)

`GET /workspaces/{workspace}/settings/gpg/public-key`

Returns the system public GPG key(s). In most cases a single key is returned.
During a key rotation period, two keys may be returned.

## Response `200`

The system public GPG key(s).

## Other responses

- `401` — The request wasn't authenticated.
- `403` — The requesting user is not a workspace member.
- `404` — The workspace does not exist.

---

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