How to authorize AI Center swagger?

Where can I get bearer Auth code to use ai center swagger?

  1. Open your AI Center Swagger URL:
    https://cloud.uipath.com/[accountLogicalName]/[tenantLogicalName]/aicenter_/swagger/index.html

  2. Click the “Authorize” button in the top right corner.

  3. 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.

  1. Copy the access_token value and go back to Swagger UI. Click “Authorize” again.

  2. In the input field, paste:
    Bearer your-access-token

Make sure to include the word “Bearer” followed by a space and then the token.

  1. 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.