Infisical
Manage secrets with Infisical
Integrate Infisical into your workflow. List, get, create, update, and delete secrets across project environments.
List all secrets in a project environment. Returns secret keys, values, comments, tags, and metadata.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | No | Infisical instance URL (default: "https://us.infisical.com"\). Use "https://eu.infisical.com" for EU Cloud or your self-hosted URL. |
projectId | string | Yes | No description |
environment | string | Yes | The environment slug (e.g., "dev", "staging", "prod") |
secretPath | string | No | The path of the secrets (default: "/") |
recursive | boolean | No | No description |
expandSecretReferences | boolean | No | No description |
viewSecretValue | boolean | No | No description |
includeImports | boolean | No | No description |
tagSlugs | string | No | No description |
| Parameter | Type | Description |
|---|
secrets | array | Array of secrets |
↳ id | string | Secret ID |
↳ workspace | string | Workspace/project ID |
↳ secretKey | string | Secret name/key |
↳ secretValue | string | Secret value |
↳ secretComment | string | Secret comment |
↳ secretPath | string | Secret path |
↳ version | number | Secret version |
↳ type | string | Secret type (shared or personal) |
↳ environment | string | Environment slug |
↳ tags | array | Tags attached to the secret |
↳ id | string | Tag ID |
↳ slug | string | Tag slug |
↳ color | string | Tag color |
↳ name | string | Tag name |
↳ secretMetadata | array | Custom metadata key-value pairs |
↳ key | string | Metadata key |
↳ value | string | Metadata value |
↳ createdAt | string | Creation timestamp |
↳ updatedAt | string | Last update timestamp |
count | number | Total number of secrets returned |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | No | Infisical instance URL (default: "https://us.infisical.com"\). Use "https://eu.infisical.com" for EU Cloud or your self-hosted URL. |
projectId | string | Yes | No description |
environment | string | Yes | The environment slug (e.g., "dev", "staging", "prod") |
secretName | string | Yes | No description |
secretPath | string | No | The path of the secret (default: "/") |
version | number | No | No description |
type | string | No | Secret type: "shared" or "personal" (default: "shared") |
viewSecretValue | boolean | No | No description |
expandSecretReferences | boolean | No | No description |
| Parameter | Type | Description |
|---|
secret | object | The retrieved secret |
↳ id | string | Secret ID |
↳ workspace | string | Workspace/project ID |
↳ secretKey | string | Secret name/key |
↳ secretValue | string | Secret value |
↳ secretComment | string | Secret comment |
↳ secretPath | string | Secret path |
↳ version | number | Secret version |
↳ type | string | Secret type (shared or personal) |
↳ environment | string | Environment slug |
↳ tags | array | Tags attached to the secret |
↳ id | string | Tag ID |
↳ slug | string | Tag slug |
↳ color | string | Tag color |
↳ name | string | Tag name |
↳ secretMetadata | array | Custom metadata key-value pairs |
↳ key | string | Metadata key |
↳ value | string | Metadata value |
↳ createdAt | string | Creation timestamp |
↳ updatedAt | string | Last update timestamp |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | No | Infisical instance URL (default: "https://us.infisical.com"\). Use "https://eu.infisical.com" for EU Cloud or your self-hosted URL. |
projectId | string | Yes | No description |
environment | string | Yes | The environment slug (e.g., "dev", "staging", "prod") |
secretName | string | Yes | No description |
secretValue | string | Yes | No description |
secretPath | string | No | The path for the secret (default: "/") |
secretComment | string | No | No description |
type | string | No | Secret type: "shared" or "personal" (default: "shared") |
tagIds | string | No | No description |
| Parameter | Type | Description |
|---|
secret | object | The created secret |
↳ id | string | Secret ID |
↳ workspace | string | Workspace/project ID |
↳ secretKey | string | Secret name/key |
↳ secretValue | string | Secret value |
↳ secretComment | string | Secret comment |
↳ secretPath | string | Secret path |
↳ version | number | Secret version |
↳ type | string | Secret type (shared or personal) |
↳ environment | string | Environment slug |
↳ tags | array | Tags attached to the secret |
↳ id | string | Tag ID |
↳ slug | string | Tag slug |
↳ color | string | Tag color |
↳ name | string | Tag name |
↳ secretMetadata | array | Custom metadata key-value pairs |
↳ key | string | Metadata key |
↳ value | string | Metadata value |
↳ createdAt | string | Creation timestamp |
↳ updatedAt | string | Last update timestamp |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | No | Infisical instance URL (default: "https://us.infisical.com"\). Use "https://eu.infisical.com" for EU Cloud or your self-hosted URL. |
projectId | string | Yes | No description |
environment | string | Yes | The environment slug (e.g., "dev", "staging", "prod") |
secretName | string | Yes | No description |
secretValue | string | No | No description |
secretPath | string | No | The path of the secret (default: "/") |
secretComment | string | No | No description |
newSecretName | string | No | No description |
type | string | No | Secret type: "shared" or "personal" (default: "shared") |
tagIds | string | No | No description |
| Parameter | Type | Description |
|---|
secret | object | The updated secret |
↳ id | string | Secret ID |
↳ workspace | string | Workspace/project ID |
↳ secretKey | string | Secret name/key |
↳ secretValue | string | Secret value |
↳ secretComment | string | Secret comment |
↳ secretPath | string | Secret path |
↳ version | number | Secret version |
↳ type | string | Secret type (shared or personal) |
↳ environment | string | Environment slug |
↳ tags | array | Tags attached to the secret |
↳ id | string | Tag ID |
↳ slug | string | Tag slug |
↳ color | string | Tag color |
↳ name | string | Tag name |
↳ secretMetadata | array | Custom metadata key-value pairs |
↳ key | string | Metadata key |
↳ value | string | Metadata value |
↳ createdAt | string | Creation timestamp |
↳ updatedAt | string | Last update timestamp |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
baseUrl | string | No | Infisical instance URL (default: "https://us.infisical.com"\). Use "https://eu.infisical.com" for EU Cloud or your self-hosted URL. |
projectId | string | Yes | No description |
environment | string | Yes | The environment slug (e.g., "dev", "staging", "prod") |
secretName | string | Yes | No description |
secretPath | string | No | The path of the secret (default: "/") |
type | string | No | Secret type: "shared" or "personal" (default: "shared") |
| Parameter | Type | Description |
|---|
secret | object | The deleted secret |
↳ id | string | Secret ID |
↳ workspace | string | Workspace/project ID |
↳ secretKey | string | Secret name/key |
↳ secretValue | string | Secret value |
↳ secretComment | string | Secret comment |
↳ secretPath | string | Secret path |
↳ version | number | Secret version |
↳ type | string | Secret type (shared or personal) |
↳ environment | string | Environment slug |
↳ tags | array | Tags attached to the secret |
↳ id | string | Tag ID |
↳ slug | string | Tag slug |
↳ color | string | Tag color |
↳ name | string | Tag name |
↳ secretMetadata | array | Custom metadata key-value pairs |
↳ key | string | Metadata key |
↳ value | string | Metadata value |
↳ createdAt | string | Creation timestamp |
↳ updatedAt | string | Last update timestamp |