# New API /users request issue?

**URL:** <https://discuss.dev.twitch.com/t/new-api-users-request-issue/12480>\
**Category:** API\
**Created:** [October 17, 2017, 10:24pm UTC](https://discuss.dev.twitch.com/t/new-api-users-request-issue/12480 "2017-10-17T22:24:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Travis\_Miller](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/travis_miller/32/7007_2.png) [@Travis\_Miller](https://discuss.dev.twitch.com/u/Travis_Miller)\
**Post date:** [October 17, 2017, 10:24pm UTC](https://discuss.dev.twitch.com/t/new-api-users-request-issue/12480/1 "2017-10-17T22:24:34Z")

</div>

> **[Reference](https://dev.twitch.tv/docs/api/reference#get-users)**
>
> Twitch Developer tools and services to integrate Twitch into your development or create interactive experience on twitch.tv.

In the docs it says  
Gets information about one or more specified Twitch users. Users are identified by optional user IDs and/or login name. If neither a user ID nor a login name is specified, the user is looked up by OAuth token.  
It also says:  
Optional scope: user:read:email

So when I make a request like this:  
[https://api.twitch.tv/helix/users](https://api.twitch.tv/helix/users)  
-H “Client-ID”, “myclientid”  
-H “Authorization”, “OAuth mytoken”

I expect it to give me details on the user attached to the OAuth token without the email being included.

It gives me a 400 Bad Request. Does this mean the Optional scope is not really optional if you are passing in the oauth?

---

<div class="post-metadata">

**Author:** ![Six](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/six/32/2334_2.png) [@Six](https://discuss.dev.twitch.com/u/Six)\
**Post date:** [October 17, 2017, 10:54pm UTC](https://discuss.dev.twitch.com/t/new-api-users-request-issue/12480/2 "2017-10-17T22:54:54Z")

</div>

The new helix api doesn’t use the format like the old kraken api:

```auto
"Authorization: OAuth <token>"

```

It uses this format instead:

```auto
"Authorization: Bearer <token>"

```

I just tested this and it worked perfectly without specifying a user id or login name.

---

<div class="post-metadata">

**Author:** ![Travis\_Miller](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/travis_miller/32/7007_2.png) [@Travis\_Miller](https://discuss.dev.twitch.com/u/Travis_Miller)\
**Post date:** [October 17, 2017, 11:04pm UTC](https://discuss.dev.twitch.com/t/new-api-users-request-issue/12480/3 "2017-10-17T23:04:40Z")

</div>

Ok thanks @Six  
It is kinda weird that the Docs for New Api literally gives an example with "Authorization: OAuth "

---

<div class="post-metadata">

**Author:** ![Six](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/six/32/2334_2.png) [@Six](https://discuss.dev.twitch.com/u/Six)\
**Post date:** [October 17, 2017, 11:15pm UTC](https://discuss.dev.twitch.com/t/new-api-users-request-issue/12480/4 "2017-10-17T23:15:15Z")

</div>

Yeah, their documentation up-keep still needs some work. Another quirk that I’ve noticed was that is says you should get `204 No Content` when you update a user’s [description](https://dev.twitch.tv/docs/api/reference#put-users). But when you actually make the call, it returns a `User` object and a `200 OK` status like when you request the [Users](https://dev.twitch.tv/docs/api/reference#get-users) endpoint.

---

<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:** [November 16, 2017, 11:15pm UTC](https://discuss.dev.twitch.com/t/new-api-users-request-issue/12480/5 "2017-11-16T23:15:25Z")

</div>

Closed on November 16, 2017, 11:15pm UTC

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