API / anonymize or delete

I am also interested in using an api call to anonymize a user. What is the API endpoint you are using to anonymize a user?