How to call UiPath code through API

Hello All,

I want to call my UiPath code on API URL hit. Also I am not able to Authenticate the System for the UiPath Orchestrator for getting Token in Postman. Using the POST method for Authentication but getting the error - “Cloud Agent Error: Couldn’t resolve host. Make sure the domain is publicly accessible or select a different agent.”

For getting the token from the Cloud Orchestrator, you need to perform the below POST operation:

For Starting a Job, try this POST example: