# What is that wrong api message

**URL:** <https://discuss.dev.twitch.com/t/what-is-that-wrong-api-message/16049>\
**Category:** API\
**Created:** [June 3, 2018, 4:09pm UTC](https://discuss.dev.twitch.com/t/what-is-that-wrong-api-message/16049 "2018-06-03T16:09:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DSO\_Meweric](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@DSO\_Meweric](https://discuss.dev.twitch.com/u/DSO_Meweric)\
**Post date:** [June 3, 2018, 4:09pm UTC](https://discuss.dev.twitch.com/t/what-is-that-wrong-api-message/16049/1 "2018-06-03T16:09:11Z")

</div>

my send url =

curl --header Authorization: OAuth h2f3ng4opcsk2stzvarchfp6nnpdvl --header Client-ID: wur199oz6psaa1s5kr0gxz3gejqwqq --header Accept: application/vnd.twitchtv.v5+json [https://api.twitch.tv/kraken/user](https://api.twitch.tv/kraken/user)

but answer wrong =

{“error”:“Unauthorized”,“status”:401,“message”:“missing required oauth scope”}

what is this ?

i fallow this url [https://dev.twitch.tv/docs/v5/reference/users/#get-user](https://dev.twitch.tv/docs/v5/reference/users/#get-user)

---

<div class="post-metadata">

**Author:** ![xDemonsxXxSaintx](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/xdemonsxxxsaintx/32/4144_2.png) [@xDemonsxXxSaintx](https://discuss.dev.twitch.com/u/xDemonsxXxSaintx)\
**Post date:** [June 3, 2018, 4:23pm UTC](https://discuss.dev.twitch.com/t/what-is-that-wrong-api-message/16049/2 "2018-06-03T16:23:54Z")

</div>

> [@DSO\_Meweric](#):
>
> “missing required oauth scope”

The oauth token you are using doesn’t have the “user\_read” scope required to make the request.

---

<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:** [July 3, 2018, 4:24pm UTC](https://discuss.dev.twitch.com/t/what-is-that-wrong-api-message/16049/3 "2018-07-03T16:24:09Z")

</div>

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