Could you check out this post of me for more reference on how to use the new Cloud API?
It contains a zipped project that will generate you all the necessary things. It is basically a project version of the guide from here:
https://orchestrator.uipath.com/v2019/reference#consuming-cloud-api