GET
/
api
/
v3
/
secrets
/
raw

Authorizations

Authorization
string
headerrequired

An access token in Infisical

Query Parameters

workspaceId
string

The ID of the project to list secrets from.

workspaceSlug
string

The slug of the project to list secrets from. This parameter is only applicable by machine identities.

environment
string

The slug of the environment to list secrets from.

secretPath
string
default: /

The secret path to list secrets from.

expandSecretReferences
enum<string>
default: false

Whether or not to expand secret references.

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

Whether or not to fetch all secrets from the specified base path, and all of its subdirectories. Note, the max depth is 20 deep.

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

Weather to include imported secrets or not.

Available options:
true,
false
tagSlugs
string

The comma separated tag slugs to filter secrets.

Response

200 - application/json
secrets
object[]
required
imports
object[]

Was this page helpful?