Skip to main content

About the setup URL

You can specify a URL that users will be redirected to after they install a App.

When you register a App, you can specify a setup URL. When users install your App, they are redirected to the setup URL. If additional setup is required after installation, you can use this URL to tell users what steps to take next.

If you specify a setup URL, you can also select Redirect on update to specify that users should be redirected to the setup URL after they update an installation. An update includes adding or removing access to a repository for an installation.

Warning

When redirects users to the setup URL, it includes an installation_id query parameter. Bad actors can hit this URL with a spoofed installation_id. Therefore, you should not rely on the validity of the installation_id parameter. Instead, you should generate a user access token for the user who installed the App and then check that the installation is associated with that user. For more information, see Generating a user access token for a App.

Although the setup URL is optional during App registration, it is required if you want to allow users to purchase your app in Marketplace. For more information, see Handling new purchases and free trials.

The setup URL is different from the callback URL. Users are redirected to the setup URL after they install a App. Users are redirected to the callback URL when they authorize a App via the web application flow. For more information, see About the user authorization callback URL.

For more information about registering a App, see Registering a App. For more information about modifying a App registration, see Modifying a App registration.