Hey @RedPacketSec,
If you want to use the internal API you would need to follow one of the approaches in this post: How to authenticate for REST API with Users management activated?
We are working on a supported public api at the moment though so it could be worth waiting a couple of weeks unless it is urgent.