codespaces
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.
get/user/codespaces/secrets/{secret_name}
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/user/codespaces/secrets/{secret_name}
- Auth: none declared
Path parameters
secret_namestring required
The name of the secret.
Response
Response
Example response
{
"name": "SECRET_NAME",
"selected_repositories_url": "https://api.github.com/user/secrets/SECRET_NAME/repositories"
}Changes
No recorded changes to this operation across all 23 revisions of this API.