# Use Get Users without Client-ID?

**URL:** <https://discuss.dev.twitch.com/t/use-get-users-without-client-id/33880>\
**Category:** API\
**Created:** [October 7, 2021, 12:16am UTC](https://discuss.dev.twitch.com/t/use-get-users-without-client-id/33880 "2021-10-07T00:16:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bloodwithmilk25](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bloodwithmilk25/32/13840_2.png) [@bloodwithmilk25](https://discuss.dev.twitch.com/u/bloodwithmilk25)\
**Post date:** [October 7, 2021, 12:16am UTC](https://discuss.dev.twitch.com/t/use-get-users-without-client-id/33880/1 "2021-10-07T00:16:54Z")

</div>

Hello everyone. I have a question regarding OAuth2.  
I’m using **OAuth implicit code flow** on the app’s frontend. Then I pass fetched token to the python backend where I try to retrieve data about the user.  
I use only “user:read:email” scope.

The issue is that when I call **[https://api.twitch.tv/helix/users](https://api.twitch.tv/helix/users)** like so:

```auto
auth_headers = {
            'Authorization': 'Bearer ' + access_token,
        }
url = 'https://api.twitch.tv/helix/users'
response = requests.post(url=url, headers=auth_headers)

```

I receive `{'error': 'Unauthorized', 'status': 401, 'message': 'Client ID is missing'}`  
If I add `Client-Id=some_cliend_id` to the request headers everything works.

Shouldn’t it work with token only?

---

<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:** [October 7, 2021, 12:30am UTC](https://discuss.dev.twitch.com/t/use-get-users-without-client-id/33880/2 "2021-10-07T00:30:41Z")

</div>

> [@bloodwithmilk25](#):
>
> Shouldn’t it work with token only?

No both a ClientID and Bearer token are required/must be specified.

---

<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 6, 2021, 12:30am UTC](https://discuss.dev.twitch.com/t/use-get-users-without-client-id/33880/3 "2021-11-06T00:30:53Z")

</div>

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