# How to request scope

**URL:** <https://discuss.dev.twitch.com/t/how-to-request-scope/20376>\
**Category:** Chat and IRC\
**Created:** [March 5, 2019, 10:22pm UTC](https://discuss.dev.twitch.com/t/how-to-request-scope/20376 "2019-03-05T22:22:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksnotshort](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@ksnotshort](https://discuss.dev.twitch.com/u/ksnotshort)\
**Post date:** [March 5, 2019, 10:22pm UTC](https://discuss.dev.twitch.com/t/how-to-request-scope/20376/1 "2019-03-05T22:22:57Z")

</div>

I am reading the twitch irc doc and I see that it requires certain scopes for certain features and it says that i should put the scope i need in my oauth password. I am using Twitch Chat OAuth Password Generator ([https://twitchapps.com/tmi/](https://twitchapps.com/tmi/)) to get my token. How do i request the scope?

---

<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:** [March 5, 2019, 10:34pm UTC](https://discuss.dev.twitch.com/t/how-to-request-scope/20376/2 "2019-03-05T22:34:28Z")

</div>

That site is only for generating tokens specifically for Chat, it doesn’t let you customise the scopes and you can’t add scopes to a token after it has been generated. If you need a token with different scopes you should create an app and go through the OAuth process yourself with the scopes you need [https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#oauth-authorization-code-flow](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#oauth-authorization-code-flow)

---

<div class="post-metadata">

**Author:** ![ksnotshort](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@ksnotshort](https://discuss.dev.twitch.com/u/ksnotshort)\
**Post date:** [March 5, 2019, 10:47pm UTC](https://discuss.dev.twitch.com/t/how-to-request-scope/20376/3 "2019-03-05T22:47:15Z")

</div>

Does the token I’m using contain any scopes by default or none at all?

---

<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:** [March 5, 2019, 10:52pm UTC](https://discuss.dev.twitch.com/t/how-to-request-scope/20376/4 "2019-03-05T22:52:26Z")

</div>

That site requests a token with all the scopes required for Twitch Chat functionality, which are `chat:read`, `chat:edit`, `channel:moderate`, `whispers:read`, and `whispers:edit`

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [April 4, 2019, 10:52pm UTC](https://discuss.dev.twitch.com/t/how-to-request-scope/20376/5 "2019-04-04T22:52:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
