SDKClient

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 (managed blocks report hasValue=true)

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 and presence (no plaintext)

GET

Usage:

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

Input:

ParameterTypeRequiredDescription
projectIdstringYes

setSecretValue

Upsert a secret value for a block::var key (rejects managed secret vars)

POST

Usage:

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

Input:

ParameterTypeRequiredDescription
projectIdstringYes
keystringYes
valuestringYes

deleteSecretValue

Remove a stored secret value

POST

Usage:

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

Input:

ParameterTypeRequiredDescription
projectIdstringYes
keystringYes

On this page