Where can I get bearer Auth code to use ai center swagger?
-
Open your AI Center Swagger URL:
https://cloud.uipath.com/[accountLogicalName]/[tenantLogicalName]/aicenter_/swagger/index.html -
Click the “Authorize” button in the top right corner.
-
Obtain a Bearer token from UiPath Identity Server using your credentials. You can use the following request:
POST https://cloud.uipath.com/identity_/connect/token
Content-Type: application/x-www-form-urlencoded
grant_type=refresh_token
&client_id=your-client-id
&refresh_token=your-refresh-token
This will return a JSON with an access_token.
-
Copy the access_token value and go back to Swagger UI. Click “Authorize” again.
-
In the input field, paste:
Bearer your-access-token
Make sure to include the word “Bearer” followed by a space and then the token.
- Click “Authorize” and then “Close”.
Now you can make authenticated requests to the AI Center API directly from Swagger.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.