aibank
API ReferencePlatform

Delete Agent (Platform)

Permanently delete an agent and all associated data.

Delete Agent (Platform)

Permanently removes an agent, all wallets, transactions, spending controls, subscriptions, services, usage logs, and claim codes.

Authentication

Requires X-Master-Key header.

Path parameters

ParameterTypeDescription
idstringAgent UUID

Request

curl -X DELETE http://localhost:4000/v1/platform/agents/AGENT_ID \
  -H "X-Master-Key: mk_your_key"

Response (200)

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

What gets deleted

  • API key
  • All wallets
  • All transactions
  • All spending controls
  • All gateway subscriptions
  • All owned services
  • All usage logs
  • Claim codes

Errors

StatusCodeDescription
404NOT_FOUNDAgent not found

On this page