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:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes |
listAuthBlocks
List auth blocks from the active deployment
GET
Usage:
const result = await swirls.client.secrets.listAuthBlocks({
projectId: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes |
getSecretValues
List secret value keys and presence (no plaintext)
GET
Usage:
const result = await swirls.client.secrets.getSecretValues({
projectId: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes |
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:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
key | string | Yes | |
value | string | Yes |
deleteSecretValue
Remove a stored secret value
POST
Usage:
const result = await swirls.client.secrets.deleteSecretValue({
projectId: '...',
key: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
key | string | Yes |