Campaing id of membership via API

So i was trying to make a very simple integration and get what tiers and/or how much money the authenticated user makes to a certain campaign.

However was having hard time getting that information out of the identity endpoint. Docs mention including memberships and campaing should return “information about the user’s memberships and the Campaigns they are Member”

But no matter what i tried i just got a list of memberships by uuid and no reference to the campagin id it belonged to.

I thought i would have to check for every single membership id on the corresponding endpoint to get the actual campaign, which could be a lot of requests, but realized you can use:

// Mind the dot syntax

include=membership.campagin

Instead of just membership and now i can get an id as part of the responses. I figured this out cause i was reading this forum and found an example on an unrelated post that used this syntax and that let me figure it out but this is not listed anywhere on the official docs for the relevant identity endpoint.

Half the reason i am writing this is so people can eventually find this but it would be nice if the documentation was more up to date