OpenAPI unable to work

Hi,

I’ve been trying to use the OpenAPI feature and I’ve been reading the documentation: https://docs.uipath.com/automation-hub/reference#consuming-automation-hub-api

I’m unable to get this to work.

I’m making a GET request to https://automation-hub.uipath.com/api/v1/openapi/users with these headers

x-ah-openapi-auth: openapi-token
Authorization: Bearer 817b87dc-xxxx-xxxx-xxxx-xxxxxxxxxxx/70d2c960-xxxx-xxxx-xxxx-xxxxxxxxxxxx

and I do not have any app key used here. I get a response back saying

Let me know if anyone can help me out :slight_smile:

Hey @Shahzin_Sajid,

Thanks for reaching out.

If you followed the steps in the docs link you have mentioned, then I think you should be all set.

The token format seems ok, but the error message you have sent indicates that the API service could not identify the tenant from which you are trying to perform the call.

In order to fix that, I recommend that you do the following:

  • Check that the tenant ID is correct. You can do that by going to Admin Console - Platform Setup - Open API and check the the info on the upper left corner of the screen:

  • Or you can try to copy again the entire token by using the copy to clipboard option highlighted in the picture above image.

It is ok if you do not have the appkey setup, that is not mandatory.

If there would be something else wrong with the API call, you would have got another error message. But for this one, you just need to double check the tenant ID or copy the token again and it should work just fine.

Let us know how it goes.

Thanks!

1 Like