API Reference
Delete a user
DELETE
/api/users/{id}
Superadmin can delete admins and viewers. Admins can only delete viewers. Cannot delete your own account.
Operation IDdeleteUser
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
Success response body
200User deleted
User deleted
Content typeapplication/json
responseobject1 property
successbooleanError responses
403Insufficient permissions
Insufficient permissions
No response content schema is documented.
404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}