That’s just an example of how to send an access token, there’s no actual https://api.twitch.tv/helix/ endpoint which is why it 404’s.
For an authentication system you can either use the validation endpoint: https://dev.twitch.tv/docs/authentication/#validating-requests
or the Get Users endpoint: https://dev.twitch.tv/docs/api/reference/#get-users