Invalid transport and auth combination, when subscribing to points redemptions with websocket

I am trying to get the channel points redemption via websocket. I open a websocket connection to wss://eventsub.wss.twitch.tv/ws and if the message_type is “session_welcome”, I send a POST request to https://api.twitch.tv/helix/eventsub/subscriptions with the content:

{
   "type": "channel.channel_points_custom_reward_redemption.add",
   "version": "1",
   "condition":{
       "broadcaster_user_id": [MY USER ID]
   },
   "transport":{
       "method": "websocket",
       "session_id": [SESSION ID FROM WEBSOCKET]
   }
}

In the Header I have:

Client-ID: [CLIENT ID]
Authorization: "Bearer " + [ACCESS TOKEN]
Accept: "application/vnd.twitchtv.v5+json"

But I get a 400 Bad Request Response with the message: “invalid transport and auth combination”.

I found my mistake. I used the app access token instead of the user access token.

Side note this header is dead as it was for kraken.

A simple Accept: application/json suffices if you send an accept header at all

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