How to use rest api in uipath

You need to use the HTTP Request activity from UiPath.WebAPI.Activities package.

More details: https://docs.uipath.com/activities/docs/http-client