Secrets
Get a secret by name
get/api/v4/secrets/{secretName}
Request
- Base URLhttps://us.infisical.com
- URLhttps://us.infisical.com/api/v4/secrets/{secretName}
- AuthHTTP bearer
Path parameters
secretNamestring required
The name of the secret to get.
Query parameters
projectIdstring required
The ID of the project to get the secret from.
environmentstring
The slug of the environment to get the secret from.
secretPathstring
The path of the secret to get.
versionnumber
The version of the secret to get.
type'shared' | 'personal'
The type of the secret to get.
viewSecretValue'true' | 'false'
Whether or not to retrieve the secret value.
expandSecretReferences'true' | 'false'
Whether or not to expand secret references.
includeImports'true' | 'false'
Weather to include imported secrets or not.
Response
Default Response
Changes
No recorded changes to this operation across all 65 revisions of this API.