Skip to content

InfisicalCreateSecretInput

Defined in: secrets/secrets.ts:34

What to create a secret with, on top of its scope.

environment: string

Defined in: secrets/secrets.ts:28

The slug of the environment, such as dev or prod.

InfisicalSecretScope.environment


optional secretPath?: string

Defined in: secrets/secrets.ts:30

The folder path inside the environment; left out, / is used.

InfisicalSecretScope.secretPath


secretValue: string

Defined in: secrets/secrets.ts:36

The value to store.


optional type?: "shared" | "personal"

Defined in: secrets/secrets.ts:38

Whether the secret is "shared" or "personal"; left out, "shared" is sent.


workspaceId: string

Defined in: secrets/secrets.ts:26

The id of the workspace (project) that holds the secret.

InfisicalSecretScope.workspaceId