GET
/orgs/{org}/agents/secrets/{secret_name}Get an organization secret
Gets a single organization secret without revealing its encrypted value.
The authenticated user must have collaborator access to a repository to create, update, or read secrets.
OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo 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
updated_atstringrequired
visibilitystringrequired
Visibility of a secret
selected_repositories_urlstringoptional