Remove user

Removes a user's access to an organization or profile. Requires admin role. You cannot remove yourself or remove the last admin.

DELETE
/v3/users/{userId}

Path Parameters

userId*string

User ID from route parameter

Formatuuid

Header Parameters

x-profile-id?string

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Formatuuid

Request Body

application/json
  1. body

Base request for mutation operations (POST, PUT, PATCH) with sandbox mode support

sandbox?boolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

Response Body

User removed successfully

Example Request
curl -X DELETE 'https://api.sent.dm/v3/users/aa0e8400-e29b-41d4-a716-446655440005' \  -H 'Content-Type: application/json' \  -d '{  "sandbox": false}'
Example Response
Empty