# Deactivate a user (e.g. account suspension)
curl -X PATCH https://api.voxmind.ai/organisations/42/users/1001 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"is_active": false}'
# Deactivate
requests.patch(
"https://api.voxmind.ai/organisations/42/users/1001",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"is_active": False},
)
# Reactivate later
requests.patch(
"https://api.voxmind.ai/organisations/42/users/1001",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"is_active": True},
)
{
"id": 1001,
"org_id": 42,
"external_id": "user_98765",
"is_active": false,
"created_at": "2025-02-10T09:15:00Z",
"updated_at": "2025-03-15T12:00:00Z"
}
Users
Update User
Update a user’s active status. Use this to deactivate users without deleting their voiceprint record.
PATCH
/
organisations
/
{orgId}
/
users
/
{userId}
# Deactivate a user (e.g. account suspension)
curl -X PATCH https://api.voxmind.ai/organisations/42/users/1001 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"is_active": false}'
# Deactivate
requests.patch(
"https://api.voxmind.ai/organisations/42/users/1001",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"is_active": False},
)
# Reactivate later
requests.patch(
"https://api.voxmind.ai/organisations/42/users/1001",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"is_active": True},
)
{
"id": 1001,
"org_id": 42,
"external_id": "user_98765",
"is_active": false,
"created_at": "2025-02-10T09:15:00Z",
"updated_at": "2025-03-15T12:00:00Z"
}
Overview
Currently supports updating theis_active flag on a user record. Setting is_active: false deactivates a user — they will no longer be able to authenticate via Voxmind until reactivated. The voiceprint data is preserved, so reactivation is instant with no re-enrollment required.
This is the preferred approach when a user leaves your platform, has their account suspended, or should temporarily lose voice authentication access. Use deletion only when you need to permanently remove voiceprint data (e.g. GDPR erasure requests).
Path Parameters
Request Body
# Deactivate a user (e.g. account suspension)
curl -X PATCH https://api.voxmind.ai/organisations/42/users/1001 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"is_active": false}'
# Deactivate
requests.patch(
"https://api.voxmind.ai/organisations/42/users/1001",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"is_active": False},
)
# Reactivate later
requests.patch(
"https://api.voxmind.ai/organisations/42/users/1001",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"is_active": True},
)
{
"id": 1001,
"org_id": 42,
"external_id": "user_98765",
"is_active": false,
"created_at": "2025-02-10T09:15:00Z",
"updated_at": "2025-03-15T12:00:00Z"
}

