Retrieve secrets
Retrieve secrets
Retrieve all secrets for an Infisical project and environment.
- cURL
When using a service token with access to a single environment and path, you don’t need to provide request parameters because the server will automatically scope the request to the defined environment/secrets path of the service token used.
For all other cases, request parameters are required.
string
required
The ID of the workspace
string
required
The environment slug
string
default:"/"
Path to secrets in workspace
Create secret
Create secret
Create a secret in Infisical.
- cURL
string
required
Name of secret to create
string
required
The ID of the workspace
string
required
The environment slug
string
required
Value of secret
string
Comment of secret
string
default:"/"
Path to secret in workspace
string
default:"shared"
The type of the secret. Valid options are “shared” or “personal”
Retrieve secret
Retrieve secret
Update secret
Update secret
Update an existing secret in Infisical.
- cURL
string
required
Name of secret to update
string
required
The ID of the workspace
string
required
The environment slug
string
required
Value of secret
string
default:"/"
Path to secret in workspace.
string
default:"shared"
The type of the secret. Valid options are “shared” or “personal”