# Following user using v5 API

**URL:** <https://discuss.dev.twitch.com/t/following-user-using-v5-api/14970>\
**Category:** API\
**Created:** [March 29, 2018, 1:58pm UTC](https://discuss.dev.twitch.com/t/following-user-using-v5-api/14970 "2018-03-29T13:58:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Siffert](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@Marco\_Siffert](https://discuss.dev.twitch.com/u/Marco_Siffert)\
**Post date:** [March 29, 2018, 1:58pm UTC](https://discuss.dev.twitch.com/t/following-user-using-v5-api/14970/1 "2018-03-29T13:58:31Z")

</div>

So I am trying to let people log into my application and follow users. Now, I have an access token. After looking at the documentation [here](https://dev.twitch.tv/docs/v5/reference/users#follow-channel), I am a bit confused. It says the following:

_Adds a specified user to the followers of a specified channel._  
_There is an error response (422 Unprocessable Entity) if the channel could not be followed._

And the URL looks like this: **PUT [https://api.twitch.tv/kraken/users/](https://api.twitch.tv/kraken/users/)/follows/channels/**

Where do I have to put my access token? Why do I have to add an User ID instead of an access token?

---

<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 29, 2018, 2:49pm UTC](https://discuss.dev.twitch.com/t/following-user-using-v5-api/14970/2 "2018-03-29T14:49:22Z")

</div>

Access token is passed via the authorization header as documented in the apps and authentication guide. You need both the access token and user IDs.

---

<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 28, 2018, 2:49pm UTC](https://discuss.dev.twitch.com/t/following-user-using-v5-api/14970/3 "2018-04-28T14:49:36Z")

</div>

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