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:
| 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, presence, and block vs vendor kind
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 var key
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 | |
kind | "block_var" | "vendor" | No |
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 |