Ai agents
Delete AI agent
DELETE
Delete an agent with its widget settings and prompt history. Conversations stay. Owner/admin.
bearer agents:writeheader
AuthorizationBearer <token>API key (rsl_live_…) from Settings → Developers.
Scope: agents:write
agentId*stringAI agent id. Never invent ids – list resources first.
Length
1 <= length <= 64confirmationToken?stringDestructive operations run in two steps: call without this field, show the returned summary to the user, and only after their explicit approval call again with the returned confirmation_token.
Length
length <= 512Success
application/json- response
deleted*trueValue in
trueid*stringcurl -X DELETE "https://example.com/agents/string"{ "deleted": true, "id": "string"}