GET
/user/codespaces/secrets/{secret_name}Get a secret for the authenticated user
Gets a development environment secret available to a user's codespaces without revealing its encrypted value.
The authenticated user must have Codespaces access to use this endpoint.
OAuth app tokens and personal access tokens (classic) need the codespace or codespace:secrets scope to use this endpoint.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
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 last updated, 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_urlstringrequired
The API URL at which the list of repositories this secret is visible to can be retrieved
Was this helpful?