> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ripio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accessing the Widget

> How to access the On/Off Ramp Widget using the authentication token.

# Requirements

* **Credentials**: Credentials must be requested in order to generate an Authentication token needed to use Widget On Ramp. Contact Ripio support to request the partner's registration and obtain `client_id` and `client_secret`, which univocally identify you as a Ripio customer. It is the partner's responsibility to secure these credentials.

* **Post-Confirmation Redirect URL**: It is required to provide a URL which we will redirect the user once the operation is confirmed. This URL must be public in order to let user continue to the partner's platform.

#### On Ramp

To access Widget On Ramp, you must direct the user from your platform to the Widget On Ramp along with the access token generated above.

The URL must be formed as follows:

```bash theme={null}
https://b2b-widget-onramp.ripio.com?_to=<authentication_token>
```

> **Sandbox:**: `https://b2b-widget-onramp.sandbox.ripio.com`

Example:

```bash theme={null}
https://b2b-widget-onramp.ripio.com?_to=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uIjoiMThhYjZkNmM4ZDk4NWE5Y2M4N2IwMTcyN2ExMWYwOTQ4YzJmNGUxYzQ0ODEzZTZhNDU0MzcxYTg1NzY3YjE5OSIsImV4cCI6MTcwODI5ODMzM30.4aRUEXLkUs3jf-DYMcH8claUuDKfc8qbTjW6JzpBTjI
```

#### Off Ramp

To access Widget Off Ramp, you must direct the user from your platform to the Widget Off Ramp along with the access token generated above.

The URL must be formed as follows:

```bash theme={null}
https://b2b-widget-onramp.ripio.com/offramp.html?_to=<authentication_token>
```

> **Sandbox:**: `https://b2b-widget-onramp.sandbox.ripio.com/offramp.html`

Example:

```bash theme={null}
https://b2b-widget-onramp.ripio.com/offramp.html?_to=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uIjoiMThhYjZkNmM4ZDk4NWE5Y2M4N2IwMTcyN2ExMWYwOTQ4YzJmNGUxYzQ0ODEzZTZhNDU0MzcxYTg1NzY3YjE5OSIsImV4cCI6MTcwODI5ODMzM30.4aRUEXLkUs3jf-DYMcH8claUuDKfc8qbTjW6JzpBTjI
```

When accessing the user will see the following welcome screen:

<img src="https://mintcdn.com/ripio-9dfd4837/Z0ROxzVvVQCC2WDt/ramps-api/widget/assets/widget-on-ramp.png?fit=max&auto=format&n=Z0ROxzVvVQCC2WDt&q=85&s=ae309a51c2cffff5d9f94834c9327f0b" alt="First screen of widget!" width="2852" height="1510" data-path="ramps-api/widget/assets/widget-on-ramp.png" />
