I got the acces token a few minutes before, it’s working wth other requests (such as the channels endpoint) but not with this one, what am i doing wrong?
Your client id header is wrong, it should be Client-ID, not Client_ID. The reason you’re getting a do not match error is because Twitch isn’t detecting your Client ID at all.
Also, you can’t use localhost as a callback for Webhooks or EventSub as that’s not a reachable destination for Twitch.
The callback URL needs to be wherever you’ve set up your web server, and needs to be publicly accessible, (it also needs to be HTTPS for EventSub, or any webhook topics that require user scopes).
So you could host the webserver yourself and forward any ports needed to that so you can use your public IP as a callback URL, but honestly the best place to test would be wherever you actually plan to be running your app in production.