Secrets
Retrieve
Get a secret by name
GET
/
api
/
v3
/
secrets
/
raw
/
{secretName}
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this note.
Authorizations
Authorization
string
headerrequiredAn access token in Infisical
Path Parameters
secretName
string
requiredThe name of the secret to get.
Query Parameters
workspaceId
string
The ID of the project to get the secret from.
environment
string
The slug of the environment to get the secret from.
secretPath
string
default: /The path of the secret to get.
version
number
The version of the secret to get.
type
enum<string>
default: sharedThe type of the secret to get.
Available options:
shared
, personal
include_imports
enum<string>
default: falseWeather to include imported secrets or not.
Available options:
true
, false
Response
200 - application/json
secret
object
required