I’m using the Legacy Contacts endpoint with param `showListMemberships=true` in order to get the list memberships for the contact. It works great unless the Contact is a member of more than 5 lists, at which point a bug is happening… the response restricts to only 5 list memberships instead of all of them (without a way of knowing how to get the other list memberships, if there are more memberships, or any additional info for this).
Here’s my shortened request:
GET https://api.hubapi.com/contacts/v1/contact/vid/:contact_vid_id/profile?showListMemberships=true...
Here’s my shortened response, which is incorrect… the Contact is also a member of static-list-id 5, which this excludes… but if I go to that list in the HubSpot CRM UI and search for the contact, I can clearly find it there.
{
"vid": 551,
...
"list-memberships": [
{
"static-list-id": 2,
"internal-list-id": 2,
"timestamp": 1614350641615,
"vid": 551,
"is-member": true
},
{
"static-list-id": 7,
"internal-list-id": 11,
"timestamp": 1627329258097,
"vid": 551,
"is-member": true
},
{
"static-list-id": 8,
"internal-list-id": 12,
"timestamp": 1627329284744,
"vid": 551,
"is-member": true
},
{
"static-list-id": 9,
"internal-list-id": 13,
"timestamp": 1627329316037,
"vid": 551,
"is-member": true
},
{
"static-list-id": 10,
"internal-list-id": 14,
"timestamp": 1627329321711,
"vid": 551,
"is-member": true
}
],
...
}
I also noticed that when I visit the contact in the HubSpot CRM UI and see it’s list memberships (via HubSpot) it also incorrectly shows only 5 lists the contact is a membership of, instead of all lists it’s a member of. (I’m assuming the CRM UI uses the same endpoint I’m using in my app).
This is clearly a bug as I don’t see any documentation saying that it purposefully only shows 5 of the memberships
this is causing problems for our users that use several lists and when they have contacts that are members of more than 5 lists. Our app is restricting contact syncing to the lists that they have chosen to watch, so when this list membership data is incorrect, the app then incorrectly prevents syncing the contact, and then we get contacts complaining (for obvious reason, haha).
What options do I have in order to get an accurate full list of list memberships for a given contact? Even if I need to paginate through the memberships, I need a way to find out.