Missing required OAuth Scope after adding scope

You are trying to call the helix API with kraken headers. That won’t work.

For Helix:

  1. You don’t need the Accept header
  2. You need to use the keyword Bearer in front of the token instead of OAuth

Additionally, you need to add the required broadcaster_id query parameter for the polls endpoint to work.

For more info on kraken vs helix, see https://dev.twitch.tv/docs/api/migration

Also note: kraken will be shut down soon, so you’ll want to move away from it.