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
| Parameter | Type | Description |
|---|---|---|
id | string | Agent 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
| Status | Code | Description |
|---|---|---|
| 404 | NOT_FOUND | Agent not found |