Can I anonymize a user via the API?

Yes, any action that can be performed through the UI can be performed throuth the API. Have a look at How to reverse engineer the Discourse API for details about how to find the correct route to call.

7 Likes