Use Bearer Token Flow
To Authenticate and Execute RightRev API using Bearer Token Flow
Go to the top of the Swagger and provide tenantId, Environment and click on Authorize button as shown in the screenshot below.

Once you click the Authorize button, you will see a pop-up window as shown in the screenshot below.

Generate a token by using the below mentioned steps. Before executing the below steps, you must have auth url, tenant id, client id, client secret, username and password. For more details, refer Authentication section
Using the provided credentials, you can perform HTTP requests. Below is a sample request
url --location --request POST 'https:///auth/realms/<tenant_id>/protocol/openid-connect/token' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'client_id=' --data-urlencode 'client_secret=<client_secret> --data-urlencode 'grant_type=password' --data-urlencode 'username=’ --data-urlencode 'password=<user_password>'Once the authorization is successful, the user will get an access token as a response. A sample response is shown below :
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJETUtHSkpR VlVpQm00Nnlyc29haWE1dllIUHVlZVd5Wk5vdkV2LU92TTcwIn0.eyJleHAiO jE2MDgyODk1OTQsImlhdCI6MTYwODI4OTI5NCwianRpIjoiZTA5MWFiZjgtOW Y4Zi00MDEwLWE3OWUtNTI0NmM4N2YzZjhkIiwiaXNzIjoiaHR0cDovL2F1dGg ucmlnaHRyZXYuY2xvdWQvYXV0aC9yZWFsbXMvY2hlY2tpbmciLCJhdWQiOlsi YmFja2VuZCIsIjBhNGUyOWFjMDhiZDQ5Nzc4OGFjNTI0ZCIsImFjY291bnQiX Swic3ViIjoiNWU3ODM1N2MtMjczNS00ZmQ0LThiOWUtOGU2NTg1NmU3MTRkIi widHlwIjoiQmVhcmVyIiwiYXpwIjoiMGE0ZTI5YWMwOGJkNDk3Nzg4YWM1MjR kIiwic2Vzc2lvbl9zdGF0ZSI6IjIxMGEwNzRlLWMyNzgtNGMxMC05MWRhLTdi YzA4ZDBhM2ZjYxN7BM4KD2O2a-mYE07pujUWR9XhkqZyJ2X7jnbNYnfcqHmo0 u4x7P_KChhci1bE1jSXdzDFKJDeIrb-pC2pgTtjMB502ZC0E3vhWq_wrnpMze xoeoFuqHNJIXRwNa08zx0dzTTp6HxWUw8rjKlQA5HGuxyCrnN9mlqdnprunl7 Us2eN6NZosWyOQLfnMhKEzNV796zcFG73u_zQ", "expires_in": 300, "refresh_expires_in": 1800, "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJmZDA2YzUy ZC0wZGFhLTRmMWEtYjUyYS1mNGZjY2Y5MTkzM2QifQ.eyJleHAiOjE2MDgyOT OTc3ODhhYzUyNGQiLCJzZXNzaW9uX3N0YXRlIjoiMjEwYTA3NGUtYzI3OC00Y zEwLTkxZGEtN2JjMDhkMGEzZmNhIiwic2NvcGUiOiJwcm9maWxlIGVtYWlsIn 0.9fTMUAkgcS9UmeNcoTHztsgd7enbexX9AwM03MOonDA", "token_type": "bearer", "not-before-policy": 0, "session_state": "210a074e-c278-4c10-91da-7bc08d0a3fca", "scope": "profile email" }Use this Token to provide in the bearerAuth text box. Once the token is validated, you will be viewing the below screenshot.

Click on Close button.
Now click on the Try it out button to execute any one of the APIs.

Last updated
Was this helpful?

