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

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:


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.

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:


Hope this helps!