Agents and the kill switch
Issue an agent key
POST
/api/w/:wid/agents/:aid/keysIssue a new agent-scoped key for this agent. Shown once. The agent can hold several while you rotate.
| Field | Description |
|---|---|
policyProfile | optional: the routing policy this key’s model traffic runs under (pragmatic, startup and the other profiles in GET /v1/policy-profiles). By default the workspace’s. Owners and admins only, since it decides which providers may see the agent’s prompts; recorded with the key. |
#Authentication
Session cookie
A signed-in person: the console's session cookie. Every state-changing request also carries the header x-immiscible-csrf: 1, and the member's role decides what it may do. Bearer tokens are ignored on these routes, so no machine credential can reach them.
#Path parameters
widstringrequired
Workspace id
aidstringrequired
Agent id