# Redirect URLs

> **Note:**
> Read the [Installation (OAuth)](https://developer.rippling.com/documentation/developer-portal/v2-guides/installation) guide before reading this article.

## Overview

Each app listing has a configurable allowlist of redirect URLs. All app listings require a redirect URL to support the OAuth token exchange.

The **Default Redirect URL** will be the URL that Rippling redirects to anytime an app installation starts from Rippling.

Rippling will redirect to the redirect URL with an authorization code. The callback will look like this:

```text
https://{redirect_url}/callback?code={authorization_code}&redirect_uri={redirect_uri}&buy=false
```

If you need to configure additional redirect URLs, you can add them as needed. All URLs added after the default redirect URL will be considered as **additional redirect URLs.** Rippling will only redirect to the additional URLs during the **partner-initiated installation flow and if you explicitly pass in the URL as a parameter.**

![redirect1](https://developer.rippling.com/assets/images/redirect1-acb65464755146cd992c82935ccc717b.png)

Using the example above, Rippling would use the `example2.com` additional redirect URL only if it was sent as a parameter during the partner-initiated installation flow:

```text
https://app.rippling.com/apps/PLATFORM/INSERTAPPNAME/authorize?response_type=code&client_id=INSERTCLIENTID&redirect_uri=example2.com
```

## FAQs

#### Can we have customers redirect to different URLs for our app?

If the customer starts the app installation **from Rippling**, only the **Default Redirect URL** will be used. If the customer starts the app installation **from your software**, an additional redirect URL can be used as long as the additional redirect URLs are also configured in your app.

#### How can I configure an additional redirect URL for partner-initiated installation flows?

Navigate to your app listing and go to the _Integration > Redirect_ tab. Specify the **Default Redirect URL** that should be used every time a customer goes to install your app starting from Rippling.

To add a redirect URL for when a user installs the app from your software, you'll then select **+Add a URL** to add the additional redirect URLs. Once these redirect URLs are configured, ensure that your redirect to Rippling to start the installation (aka an app installation that starts from your software) is as follows:

[https://app.rippling.com/apps/PLATFORM/INSERTAPPNAME/authorize?response\_type=code&client\_id=INSERTCLIENTID&redirect\_uri=INSERTREDIRECTURL](https://app.rippling.com/apps/PLATFORM/INSERTAPPNAME/authorize?response_type=code&client_id=INSERTCLIENTID&redirect_uri=INSERTREDIRECTURL)

For example, if your app has the following URLs configured:

![redirect2](https://developer.rippling.com/assets/images/redirect2-0835359ec29b734843681527427e81d3.png)

-   The `abc.com` will be used everytime a customer starts the app install from Rippling.
-   The `xyz.com` and the `def.com` redirect URLs will be used if they are passed as a parameter as part of the installation flow.

I.e. if the customer starts your app installation from your software and redirects to Rippling using the below syntax, then when the admin goes to make the connection from Rippling to your software, the redirect URL passed in as a parameter will be used (because it has already been configured in your app):

[https://app.rippling.com/apps/PLATFORM/INSERTAPPNAME/authorize?response\_type=code&client\_id=INSERTCLIENTID&redirect\_uri=https://xyz.com](https://app.rippling.com/apps/PLATFORM/INSERTAPPNAME/authorize?response_type=code&client_id=INSERTCLIENTID&redirect_uri=https://xyz.com)

#### Why am I unable to add a URL with 'http'?

Only URLs configured as "https" are allowed to be used as redirect URLs. If you would like to configure a redirect URL with "http", an option is to utilize [ngrok](https://ngrok.com/). This service will give you a publicly-accessible URL that you can then use as a redirect URL, as well as with our webhooks.

It's important to note that although ngrok is a free service, the URL it provides changes with each restart of ngrok on your machine. To avoid disruptions, it's advisable to keep ngrok running consistently.

Source: https://developer.rippling.com/documentation/developer-portal/v2-guides/redirect

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
