Skip to main content
Using Infisical’s API to read/write secrets with E2EE disabled allows you to create, update, and retrieve secrets in plaintext. Effectively, this means each such secret operation only requires 1 HTTP call.
Retrieve all secrets for an Infisical project and environment.

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 a secret in Infisical.
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 a secret from Infisical.
string
required
Name of secret to retrieve
string
required
The ID of the workspace
string
required
The environment slug
string
default:"/"
Path to secrets in workspace
string
default:"personal"
The type of the secret. Valid options are “shared” or “personal”
Update an existing secret in Infisical.
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”
Delete a secret in Infisical.
string
required
Name of secret to update
string
required
The ID of the workspace
string
required
The environment slug
string
default:"/"
Path to secret in workspace.
string
default:"personal"
The type of the secret. Valid options are “shared” or “personal”