Get an organization public key
GET
/orgs/{org}/codespaces/secrets/public-key
Gets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
The organization name. The name is not case sensitive.
Responses
Section titled “ Responses ”Response
Media type application/json
CodespacesPublicKey
The public key used for setting Codespaces secrets.
object
key_id
required
The identifier for the key.
string
key
required
The Base64 encoded public key.
string
id
integer
url
string
title
string
created_at
string
Examples
Example default
{ "key_id": "012345678912345678", "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234"}