# Helix Sending User Access and App Access Tokens Trouble

**URL:** <https://discuss.dev.twitch.com/t/helix-sending-user-access-and-app-access-tokens-trouble/16486>\
**Category:** API\
**Created:** [July 6, 2018, 1:27am UTC](https://discuss.dev.twitch.com/t/helix-sending-user-access-and-app-access-tokens-trouble/16486 "2018-07-06T01:27:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaguva](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@Kaguva](https://discuss.dev.twitch.com/u/Kaguva)\
**Post date:** [July 6, 2018, 1:27am UTC](https://discuss.dev.twitch.com/t/helix-sending-user-access-and-app-access-tokens-trouble/16486/1 "2018-07-06T01:27:16Z")

</div>

Hi!!  
i have a little problems with Helix

I just send this on Node.js with

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/02064f7089f562bd088455b19ddd845c8e27cac4.png)

```
in this way
       if(true)//true=kraken; false=helix;
    			{
    				console.log("------Kraken------");
    				options = {
    				url: 'https://api.twitch.tv/kraken/',
    				method: 'GET',
    				headers: {
    				  'Authorization': 'OAuth ' + result.access_token
    				}
    			  };
    			}
    			else
    			{
    				console.log("------Helix------");
    				options = {
    				url: 'https://api.twitch.tv/helix/',
    				method: 'GET',
    				headers: {
    				  'Authorization': 'Bearer ' + result.access_token//,
    				  //'Client-ID': TWITCH_CLIENT_ID
    				}
    			  };
    			}

			  request(options, function (error, response, body) {
				if (response && response.statusCode == 200) {
					
					console.log("SUCCESS API");
					console.log(body);

```

Kraken results:  
{ access\_token: ‘jd0v8z2tyr4xwjxl1ldto4s2kjg3jz’,  
expires\_in: 5134838,  
scope: [‘user:read:email’] }

Helix Results:  
{“error”:“Not Found”,“status”:404,“message”:“”}

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 6, 2018, 7:08am UTC](https://discuss.dev.twitch.com/t/helix-sending-user-access-and-app-access-tokens-trouble/16486/2 "2018-07-06T07:08:19Z")

</div>

There is no end point at [https://api.twitch.tv/helix/](https://api.twitch.tv/helix/)

Also you just published a users access\_token to the wild (which is bad)

The examples in the docs demonstrate how to send the header. In this case the helix example is to a non valid end point.

The full list of Helix endpoints is here [https://dev.twitch.tv/docs/api/reference/](https://dev.twitch.tv/docs/api/reference/)

---

<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:** [August 5, 2018, 7:08am UTC](https://discuss.dev.twitch.com/t/helix-sending-user-access-and-app-access-tokens-trouble/16486/3 "2018-08-05T07:08:23Z")

</div>

Closed on August 5, 2018, 7:08am UTC

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