Getting OAuth token for newly registered Twitch Application (Chat Bot)

Hello, I’m having issues getting the required editor scope for my chat bot to update stream information for users. When I first started working on the bot, I used an OAuth token from here. I registered my application today on Twitch to generate a client id which I believe is required for updating stream information. Using my previous OAuth token when trying to update a stream’s title doesn’t work and I haven’t found a way to get a new OAuth token that will work with my application yet.

I attempted to authorize my new app to access my channel information with the channel editor scope.

Trying to update the title afterwards[status]=TEST_TITLE&_method=put&client_id=NEW_CLIENT_ID&oauth_token=OLD_TWITCH_OAUTH

which just gives an error

{"error":"Unauthorized","status":401,"message":"Token invalid or missing required scope"}

Any help with this would be greatly appreciated. Thank you.

The OAuth generated from that link you posted will only have the scope to connect to chat, which is why it lacks the channel_editor scope. You need to use the OAuth token that you get from the request that has the channel_editor scope.

1 Like

Thank you!

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