AY Developer docs
ApiAgents

Update guardrails

Merges the given fields into the agent's `config`. `kill_switch: true` halts every agent call (`403 AGENT_HALTED`) and deactivates the Zitadel machine user; `false` restores both. `daily_limit_eur` caps the sum of today's transactions (`403 DAILY_LIMIT_EXCEEDED`).

PATCH
/agents/{id}/config

Merges the given fields into the agent's config. kill_switch: true halts every agent call (403 AGENT_HALTED) and deactivates the Zitadel machine user; false restores both. daily_limit_eur caps the sum of today's transactions (403 DAILY_LIMIT_EXCEEDED).

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Owner token: the OIDC id_token of the signed-in user (Zitadel). Owners manage agents with it; agents never use it. Add X-Act-As: <business id> to act for a business you are a member of.

Path Parameters

id*string

Agent id.

Formatuuid

Request Body

application/json
  1. body

Guardrails. Unknown fields are dropped.

kill_switch?boolean

true halts every agent call and deactivates the Zitadel user.

daily_limit_eur?number
Range0 <= value
max_spend_per_tx_eur?number
Range0 <= value

Response Body

Envelope-wrapped: { "success": true, "data": { "id", "config": <AgentConfig> } }.

application/json
  1. response
id?string
Formatuuid
config?

Guardrails. Unknown fields are dropped.

Example Request
curl -X PATCH 'https://api.aytwin.ai/api/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/config' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "config": {    "kill_switch": true,    "daily_limit_eur": 0,    "max_spend_per_tx_eur": 0  }}