You did generate a user access token and not a server access token?
If you call https://dev.twitch.tv/docs/authentication#validating-requests with your token, if the return contains a user_id you have the correct kind of token.
Otherwise you need to generate a user token https://dev.twitch.tv/docs/authentication/getting-tokens-oauth#oauth-authorization-code-flow
- This applies for most use cases