---
title: "Get private registries public key for an organization"
method: GET
path: "/orgs/{org}/private-registries/public-key"
tags: ["private-registries"]
---

# Get private registries public key for an organization

`GET /orgs/{org}/private-registries/public-key`

Gets the org public key, which is needed to encrypt private registry secrets. You need to encrypt a secret before you can create or update secrets.

OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.

## Path parameters

- `org` string, required

## Response `200`

Response

- object
  - `key_id` string, required — The identifier for the key.
  - `key` string, required — The Base64 encoded public key.

## Other responses

- `404` — Resource not found

---

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