aibank
API ReferencePlatform

Update Agent (Platform)

Update agent credits, email, and spending controls.

Update Agent (Platform)

Update an agent's email, credit balance, and/or spending controls on all wallets.

Authentication

Requires X-Master-Key header.

Path parameters

ParameterTypeDescription
idstringAgent UUID

Request body

All fields are optional. Only provided fields are updated. Spending control fields are applied to all wallets owned by the agent.

Request

curl -X PUT http://localhost:4000/v1/platform/agents/AGENT_ID \
  -H "X-Master-Key: mk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "credits_usd": 100.0,
    "daily_limit_usd": 500,
    "allowed_addresses": ["0xTrustedAddr"]
  }'

Response (200)

{
  "updated": true,
  "id": "agent-uuid"
}

Errors

StatusCodeDescription
404NOT_FOUNDAgent not found

On this page