User Management – Permanent Delete Users
Permanently delete one or more users by ID.
Authentication
Authorization: Bearer <YOUR_AUTH_TOKEN>
Endpoint
POSThttps://api.samvyo.com/api/user/permDeleteOrgUsers
Required Headers
Content-Type: application/json
Authorization: Bearer <YOUR_AUTH_TOKEN>
Request Body
An array of user IDs:
[
"<USER_ID_1>",
"<USER_ID_2>"
]
Example Requests
JavaScript (fetch)
const res = await fetch('https://api.samvyo.com/api/user/permDeleteOrgUsers', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${authToken}`
},
body: JSON.stringify([
'<USER_ID_1>',
'<USER_ID_2>'
])
});
const data = await res.json();
cURL
curl -X POST \
'https://api.samvyo.com/api/user/permDeleteOrgUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <YOUR_AUTH_TOKEN>' \
-d '["<USER_ID_1>","<USER_ID_2>"]'
Success Response
{
"success": true
}
Failure Response
If the request is not an array:
{
"success": false,
"message": "Invalid request format. Expected an array of user IDs."
}