Can UiPath do API Testing?

Yes you can get a response when you have a API end point URL and request body.
Below thread contains a sample you can download and run.

Request body would be present in a POST type of request, the activity shown in the video remains the same, it is called HTTP Request .