v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
private-registries

Get private registries public key for an organization

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.

get/orgs/{org}/private-registries/public-key

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Response

Response

key_idstring required

The identifier for the key.

keystring required

The Base64 encoded public key.

Example response

{
  "key_id": "012345678912345678",
  "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234"
}