APIs & Integrations

spaulsen
Contributor

API v3 GET recent list members

Howdy all,

I am a relative newbie to the API-webhook-integration world so if my apologies ahead of time for what might be a simple question.

I'm trying to get name and email of Contacts when they are added to a list. Following the API documentation, here's what I've done:

Step 1. 

GET https://api.hubapi.com/crm/v3/lists/ListID/memberships/join-order

THis works successfully and get all the members of the list.

Step 2.

POST https://api.hubapi.com/crm/v3/objects/contacts/search

Body:

{
"properties": [
"firstname",
"lastname",
"email",
"hs_object_id",
"createdate",
"lastmodifieddate",
"hs_all_accessible_team_ids"
],
"filterGroups": [
{
"filters": [
{
"propertyName": "hs_object_id",
"operator": "IN",
"values": [
"808431983",
"802539655",
"101"
]
}
]
}
]
}

 

Which does not have an error, but does not show recently added members to the list.

 

I know I'm missing something basic, but I haven't been able to find any tutorial for guidance.

BTW... I'm using MS Power Automate.

Thanks for any help to anyone would give to complete novice.

 

0 Upvotes
1 Reply 1
zach_threadint
Guide

API v3 GET recent list members

Hi @spaulsen 👋

 

There is often a delay between [A] data being written/saved to HubSpot's CRM and [B] these updates being reflected in responses from HubSpot's CRM Search API. Between Step 1 and Step 2 (as you've described above), try adding a short delay to see if this changes anything (5 seconds should enough most of the time).

 

I hope that proves helpful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


0 Upvotes