API HotSpot User Authentication

I would like to test a user that is created by the API

What do you mean by “test”? Login?

You can only do that from the hotspot’s login page. Not from API or scripting.