Secrets
Retrieve
Get a secret by name
GET
/
api
/
v3
/
secrets
/
raw
/
{secretName}
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.
workspaceSlug
string
The slug 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
expandSecretReferences
enum<string>
default: falseWhether or not to expand secret references.
Available options:
true
, false
include_imports
enum<string>
default: falseWeather to include imported secrets or not.
Available options:
true
, false
Response
200 - application/json
secret
object
required