ApiUsers
Deactivate a user
Deactivate a user account, cascading to all API keys and sessions. Cannot deactivate yourself or users above your role level. Requires ADMIN or OWNER role.
Authorization
User API Key AuthorizationBearer <token>
User API key (mgw_usr_live_* or mgw_usr_test_*)
In: header
Path Parameters
user_id*string
Format
uuidCookie Parameters
access_token?|
Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/deactivate"{
"success": true,
"api_keys_deactivated": 0,
"sessions_invalidated": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Create a user
Create a new user programmatically without OAuth/SSO. Optionally provision an API key in the same request. Role hierarchy is enforced. Requires ADMIN or OWNER role.
Delete a user
Permanently delete a user account and all associated data. Requires email confirmation for safety. Cannot delete yourself or users above your role level. Requires ADMIN or OWNER role.
