AgentsSecrets
List an Agent's secrets
GET
Each secret's name, type and binding (its URL, or its hosts and header). Never a value.
header
AuthorizationBearer <token>An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).
agentId*stringThe Agent id, percent-encoded: users%2Falice%2Ftriage for users/alice/triage
Nylorun-Protocol*stringThe protocol version, 18
Nylorun-Subject?stringThe person an application key acts for
Nylorun-Scopes?stringThe subject's space-separated scopes; required with a subject
The secrets
application/json- response
secrets*array<>import { createClient } from "@nylorun/agents";const client = await createClient();const secrets = await client.agents.secrets.list("users/alice/assistant"); // metadata only{ "secrets": [ { "name": "string", "type": "bearer", "binding": { "url": "string", "allowedHosts": [ "string" ], "inject": { "header": "string", "format": "string" } }, "headerNames": [ "string" ], "via": "string", "toolPrefix": "string", "identity": { "header": "string" }, "createdAt": "string", "rotatedAt": "string" } ]}