Delete Account User
Deletes a specific user from your account.
Endpoint
DELETE
v5/accountuser/{user_id}
Requires authentication.
Path Parameters
The user to delete.
user_id
string
required
The ID of the account user to delete.
Query Parameters
None
Response
Returns the deleted user's record with their status set to Disabled.
result_ok
boolean
Whether the request succeeded.
data
object
The account user record after deletion.
child attributes
id
string
The unique ID of the deleted user.
username
string
The user's display name.
email
string
The user's email address.
admin
integer
Whether the user had account administrator privileges.
1 = admin, 0 = standard user.phone_support
integer
Whether phone support access was enabled for the user.
1 = enabled, 0 = disabled.userdata
array | object
Custom user data fields set on the user. Returns an empty array
[] if none are set.license
string
The license type that was assigned to the user. Returns an empty string if no license was assigned.
defaultteam
string | boolean
The ID of the user's default team, or
false if no default team was set.status
string
The user's account status after deletion. Returns
Disabled.last_login
string | null
Timestamp of the user's most recent login (EST/EDT), or
null if the user never logged in.Examples
Request (cURL)
curl -X DELETE "https://api.alchemer.com/v5/accountuser/{{user_id}}?api_token=YOUR_API_TOKEN&api_token_secret=YOUR_API_TOKEN_SECRET"
Response
{
"result_ok": true,
"data": {
"id": "123456",
"username": "user@example.com",
"email": "user@example.com",
"admin": 0,
"phone_support": 0,
"userdata": [],
"license": "",
"defaultteam": false,
"status": "Disabled",
"last_login": null
}
}