provider codespaces GET /user/codespaces/secrets/{secret_name}
@utdk/github /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.
secret_name path required
The name of the secret.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
codespaces.getSecretForAuthenticatedUser
GET/user/codespaces/secrets/{secret_name}
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.

Parameters

required

The name of the secret.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.codespaces.getSecretForAuthenticatedUser()