accounts
Detach an agent from the JWT's account
Changed onClear ai_agents.account_id for agent_id, scoped to the caller's account.
Returns 404 if the agent doesn't exist, isn't attached, or is attached to a different account — the scoped UPDATE folds all three cases into one False return so we don't leak which it was.
Body uses agent_id (UUID) rather than slug because the slug-by- account scope is just a display convenience; the canonical handle we store on ai_agents.account_id is the UUID.
post/v1/accounts/me/detach-agent
Request
- Base URLhttps://alive-api.alphakek.ai (the document declares no server; this is the origin it was published from)
- URLhttps://alive-api.alphakek.ai/v1/accounts/me/detach-agent
- Authnone declared
Request body
Response
Successful Response
Changes
- info
endpoint added
- info