I’m using v2 REST API and would like to ask for a solution to this problem:
My Contacts are assigned to multiple segments. I need a way to get a single contact with its segments lists (could be just IDs). This needs to be done in the most optimal way.
For now I can use Contacts search endpoint where I send a query with filter of segment and Contact ID. This query is repeated as many times as there are segments and it isn’t very optimized solution. It would be nice to know a workaround to minimize the amount of requests made.