# What's a redirect URI?

**URL:** <https://discuss.dev.twitch.com/t/whats-a-redirect-uri/30088>\
**Category:** Migration\
**Created:** [January 24, 2021, 12:14am UTC](https://discuss.dev.twitch.com/t/whats-a-redirect-uri/30088 "2021-01-24T00:14:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cowardly](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/cowardly/32/11235_2.png) [@Cowardly](https://discuss.dev.twitch.com/u/Cowardly)\
**Post date:** [January 24, 2021, 12:14am UTC](https://discuss.dev.twitch.com/t/whats-a-redirect-uri/30088/1 "2021-01-24T00:14:45Z")

</div>

I’m trying to figure out a way to upload videos to twitch but it says I can’t looking at it I need to register and authorize, to register I need a Redirect URI, and I have no idea what that is or how to find it?

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [January 24, 2021, 12:16am UTC](https://discuss.dev.twitch.com/t/whats-a-redirect-uri/30088/2 "2021-01-24T00:16:19Z")

</div>

The Redirect URI is whatever the URL of your web server handling the OAuth process is, it’s where the user going through the OAuth flow to grant you a token with permissions to access those endpoints is sent to after they accept or deny those permissions.

---

<div class="post-metadata">

**Author:** ![Cowardly](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/cowardly/32/11235_2.png) [@Cowardly](https://discuss.dev.twitch.com/u/Cowardly)\
**Post date:** [January 24, 2021, 12:17am UTC](https://discuss.dev.twitch.com/t/whats-a-redirect-uri/30088/3 "2021-01-24T00:17:47Z")

</div>

…wow this is complicated

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [January 24, 2021, 12:20am UTC](https://discuss.dev.twitch.com/t/whats-a-redirect-uri/30088/4 "2021-01-24T00:20:39Z")

</div>

The docs have a step by step guide: [https://dev.twitch.tv/docs/authentication/getting-tokens-oauth](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth)

What it boils down to is you first send the user to a Twitch auth page asking for certain permissions.  
The user then Accepts/denies those permissions and is sent back to your page  
If you’re doing client-side API requests you’d use the Implicit flow and have an access token in the URL hash. If you’re making requests server-side you’d use the Auth Code flow and will have a ‘code’ querystring param, which your server can exchange for an access token and refresh token to get new tokens each time they expire.

If you’re just doing this for yourself, you can just use `http://loclahost`, which will 404 if you’re not running a web server but you can still copy the required bits out of the address bar on your browser. If you’re wanting other users to utilize your app you’d need to run a web server.
