Can't read channel bans with moderation:read permission

You don’t need this header with Helix

You should use the validatity endpoint

To confirm your token is correct, for the right user_id (broadcaster_id) and has the scopes you think it does.

Whats the actual error message are you getting?

Similar code flow is working as expected here!