SWIRLS_
ReferenceSDKClient

Secrets

SDK reference for secrets — Manage secrets for projects and integrations.

Manage secrets for projects and integrations.

listSecretBlocks

List secret blocks from the active deployment with per-var value presence

GET

Usage:

const result = await swirls.client.secrets.listSecretBlocks({
  projectId: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes

listAuthBlocks

List auth blocks from the active deployment

GET

Usage:

const result = await swirls.client.secrets.listAuthBlocks({
  projectId: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes

getSecretValues

List secret value keys, presence, and block vs vendor kind

GET

Usage:

const result = await swirls.client.secrets.getSecretValues({
  projectId: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes

setSecretValue

Upsert a secret value for a var key

POST

Usage:

const result = await swirls.client.secrets.setSecretValue({
  projectId: '...',
  key: '...',
  value: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes
keystringYes
valuestringYes
kind"block_var" | "vendor"No

deleteSecretValue

Remove a stored secret value

POST

Usage:

const result = await swirls.client.secrets.deleteSecretValue({
  projectId: '...',
  key: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes
keystringYes

On this page