List script vault bindings
Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.
GET /automation/v1/scripts/{namespace}/{name}/vaults
Authentication
Authorization: Bearer $PRAXIS_API_KEY
Request fields
| Parameter | Type | Description |
|---|---|---|
| path: namespace | string |
required; Namespace from automation.scripts.list or create; identifies the saved script, independently of versions. |
| path: name | string |
required; Resource name from automation.scripts.list or create; combine with ns to identify the saved script. |
Examples
Set these environment variables to your own resources:
| Variable | Source |
|---|---|
| SCRIPT_NAME | name returned by creating a script |
: "${SCRIPT_NAME:?Set SCRIPT_NAME}"
curl --fail-with-body -X GET "https://api.deepraxis.com/automation/v1/scripts/{namespace}/${SCRIPT_NAME}/vaults" \
-H "Authorization: Bearer $PRAXIS_API_KEY"
import { createAutomationClient } from '@deepraxis/sdk/automation';
function env(name: string): string {
const value = process.env[name];
if (!value) throw new Error(`Set ${name}`);
return value;
}
const automation = createAutomationClient({
apiKey: env('PRAXIS_API_KEY'),
baseUrl: 'https://api.deepraxis.com',
maxRetries: 0,
timeoutMs: 90_000,
});
const result = await automation.scripts.vaults.list({
"path": {
"ns": "docs-samples",
"name": env("SCRIPT_NAME")
}
});
console.log(result);
Response
HTTP 200
Bindings and available secret names; no secret values.
application/json
| Field | Type | Description |
|---|---|---|
| data | object[] |
required; Whole-vault bindings for this definition, sorted by alias, with secret names only. |
| data[].alias | string |
required; Alias used to identify this whole-vault binding on the script or workflow. pattern: "^[a-z][a-z0-9-]{0,39}$" |
| data[].vault | object |
required; Bound vault identity and current display name; unavailable vaults use their ID as the fallback name. |
| data[].vault.id | string |
required; Opaque vault identifier from vault creation or listing; persisted even if the vault becomes unavailable. |
| data[].vault.name | string |
required; Current vault display name, or the vault ID when its metadata cannot be read. |
| data[].secrets | object[] |
required; Accessible secret names without values. Empty when metadata cannot be read; check secrets_unavailable. |
| data[].secrets[].name | string |
required; Lookup name of a non-archived secret in this vault; secret values are never returned. |
| data[].secrets_unavailable | true |
optional; Present and true when vault or secret metadata could not be read; secrets is then empty. Omitted on success. |
Measured response
HTTP 200
{
"data": [
{
"alias": "sample",
"vault": {
"id": "vlt_0ab396e275bb47109aacf786b9a49057",
"name": "sample-vault-1793176670321-396dbf"
},
"secrets": [
{
"name": "SAMPLE_TOKEN"
}
]
}
]
}
Errors
| HTTP | Codes and description |
|---|---|
| 400 | INVALID_PARAMS: Invalid request parameters, path, cursor, or body format. |
| 404 | TARGET_NOT_FOUND: The target does not exist or has an incompatible type. |
| default | Automation problem; inspect the refusal code and diagnostics before retrying. |
Authentication and common errors · Retain the X-Request-Id response header for troubleshooting.