GET
/orgs/{org}/codespaces/secrets/{secret_name}Get an organization secret
Gets an organization development environment secret without revealing its encrypted value.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
orgstringrequired
The organization name. The name is not case sensitive.
secret_namestringrequired
The name of the secret.
200Response
namestringrequired
The name of the secret
created_atstringrequired
The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
updated_atstringrequired
The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
visibilitystringrequired
The type of repositories in the organization that the secret is visible to
selected_repositories_urlstringoptional
The API URL at which the list of repositories this secret is visible to can be retrieved