GET
/
api
/
v3
/
secrets
/
raw
/
{secretName}

Authorizations

Authorization
string
headerrequired

An access token in Infisical

Path Parameters

secretName
string
required

The 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: shared

The type of the secret to get.

Available options:
shared,
personal
expandSecretReferences
enum<string>
default: false

Whether or not to expand secret references.

Available options:
true,
false
include_imports
enum<string>
default: false

Weather to include imported secrets or not.

Available options:
true,
false

Response

200 - application/json
secret
object
required

Was this page helpful?