# 400 using example from "GET /api/oauth2/v2/members/{id}"

**URL:** <https://www.patreondevelopers.com/t/400-using-example-from-get-api-oauth2-v2-members-id/1720>\
**Category:** Uncategorized\
**Created:** [April 7, 2019, 6:06am UTC](https://www.patreondevelopers.com/t/400-using-example-from-get-api-oauth2-v2-members-id/1720 "2019-04-07T06:06:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CorayThan](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/coraythan/32/876_2.png) [@CorayThan](https://www.patreondevelopers.com/u/CorayThan)\
**Post date:** [April 7, 2019, 6:06am UTC](https://www.patreondevelopers.com/t/400-using-example-from-get-api-oauth2-v2-members-id/1720/1 "2019-04-07T06:06:09Z")

</div>

I’m successfully making a request for

`GET /api/oauth2/v2/campaigns/{campaign_id}/members`

Unfortunately, that doesn’t include the userId from this request:

`GET https://www.patreon.com/api/oauth2/v2/identity`

So I can’t easily link up a user who’s linked their Patreon OAuth account to my site to my campaign member data. There is a member ID in the member data returned from the campaign members request, though, so I thought I could make a request against:

[https://docs.patreon.com/#get-api-oauth2-v2-members-id](https://docs.patreon.com/#get-api-oauth2-v2-members-id)

To get the user id. But using the total default request with the “id” field from the data type “member” in the campaign members data returns a 400. It seems like you’ve url encoded some of the square brackets, but not all of them. So would be good to make those consistent.

And ideally provide a way to return the user id in the campaign.members request in the first place.

---

<div class="post-metadata">

**Author:** ![nsethi](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/nsethi/32/775_2.png) [@nsethi](https://www.patreondevelopers.com/u/nsethi)\
**Post date:** [April 8, 2019, 11:26pm UTC](https://www.patreondevelopers.com/t/400-using-example-from-get-api-oauth2-v2-members-id/1720/2 "2019-04-08T23:26:02Z")

</div>

Hi @CorayThan,

You should be able to get the user\_id by adding user to the list of top-level includes. The section listed under “Member Relationships” here alludes to this:

[https://docs.patreon.com/#member](https://docs.patreon.com/#member)

Hope this helps!
