> For the complete documentation index, see [llms.txt](https://apis.rightrev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apis.rightrev.com/getting-started/using-implicit-or-password-flow.md).

# Using Implicit or Password Flow

## **To Authenticate and Execute RightRev API using Implicit or Password Flow**

* Go to top of the Swagger. In the **Servers** drop-down select the OAuth server URL, provide the **tenantId** and **Environment** and then click on **Authorize** button as shown in the screenshot below.<br>

  <figure><img src="/files/TtBx1tsgyoS3PXkJJpJn" alt=""><figcaption></figcaption></figure>
* Generate token using one of the flows

### For Implicit Flow

1. Provide the **client\_id** value as Swagger and click **Authorize** button as shown in the screenshot below\ <br>

   <figure><img src="/files/GfbJJYfrYpbiarV0BA4u" alt=""><figcaption></figcaption></figure>
2. Page will open on the browser to authenticate, enter credentials and login.&#x20;
3. Once the token is validated, you will be viewing the below screenshot and then click on **Close** button<br>

   <figure><img src="/files/pj374YcCrKeDkSObANdr" alt=""><figcaption></figcaption></figure>

### For Password Flow

1. Enter provided **client\_id**, **client\_secret**, **username** and **password**
2. Click on **Authorize** button<br>

   <figure><img src="/files/itojm2wozQga47wtnkfW" alt=""><figcaption></figcaption></figure>
3. Once the token is validated, you will be viewing the below screenshot and then click on **Close** button<br>

   <figure><img src="/files/kYxKPkvjb6jLaUp4XtvS" alt=""><figcaption></figcaption></figure>
4. Click on **Close** button
5. Once you have generated the token now change the URL in the **Servers** drop-down to point to the API server. Now provide the same **tenantId** and **Environment** for which you have generated a token<br>

   <figure><img src="/files/g98mqqaOPekquYOJIvyv" alt=""><figcaption></figcaption></figure>

#### Once you are done with the above steps, click on any one of the APIs and try it out.

{% hint style="info" %}
Token time interval is 5 minutes
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apis.rightrev.com/getting-started/using-implicit-or-password-flow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
