# 404 on token endpoint?

**URL:** <https://discuss.dev.twitch.com/t/404-on-token-endpoint/14868>\
**Category:** API\
**Created:** [March 21, 2018, 7:06pm UTC](https://discuss.dev.twitch.com/t/404-on-token-endpoint/14868 "2018-03-21T19:06:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timeshifter08](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/timeshifter08/32/4485_2.png) [@timeshifter08](https://discuss.dev.twitch.com/u/timeshifter08)\
**Post date:** [March 21, 2018, 7:06pm UTC](https://discuss.dev.twitch.com/t/404-on-token-endpoint/14868/1 "2018-03-21T19:06:52Z")

</div>

I’ve gotten my auth code just fine using the /authorize endpoint

`https://id.twitch.tv/oauth2/authorize?client_id=<client_id>&redirect_uri=http://localhost&response_type=code&scope=`

but when I use the provided code with the /token endpoint

`https://id.twitch.tv/oauth2/token?client_id=<client_id>&client_secret=<client_secret>&code=<code>&grant_type=authorization_code&redirect_uri=http://localhost`

I get a 404 with no additional data provided. Any ideas? Everything looks correct per the docs to me.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [March 21, 2018, 7:09pm UTC](https://discuss.dev.twitch.com/t/404-on-token-endpoint/14868/2 "2018-03-21T19:09:46Z")

</div>

Are you sending the code request as GET or POST? It needs to be the latter.

---

<div class="post-metadata">

**Author:** ![timeshifter08](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/timeshifter08/32/4485_2.png) [@timeshifter08](https://discuss.dev.twitch.com/u/timeshifter08)\
**Post date:** [March 21, 2018, 7:13pm UTC](https://discuss.dev.twitch.com/t/404-on-token-endpoint/14868/3 "2018-03-21T19:13:35Z")

</div>

…are you freaking kidding me. I’m a web developer, this is supposed to be part of my job, lol… yep, browser wasn’t posting, that was it. It’s been a sluggish day…

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [April 20, 2018, 7:13pm UTC](https://discuss.dev.twitch.com/t/404-on-token-endpoint/14868/4 "2018-04-20T19:13:36Z")

</div>

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