APIs & Integrations

rohitgupta1017
Member

Fetching Contact properties of Newly created contacts or updated contacts

I know Hubspot has this 2 apis for fetching properties:

https://api.hubapi.com/properties/v1/contacts/properties?hapikey=2b4427ea-cdc5-4a4b-bb30-7720c781f73...
https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent??hapikey=2b4427ea-cdc5-4a4b-bb30-7720c781f73c

But What I need is to fetch all the properties of new/updated contact in hubspot?

0 Upvotes
1 Reply 1
cbarley
HubSpot Alumni
HubSpot Alumni

Fetching Contact properties of Newly created contacts or updated contacts

Hi @starkedge, please refrain from posting API keys in this forum as it is public. I'd recommend you deactivate your current key and generate a new one in case someone has decided to use it.

That said, you've already highlighted the recently updated and created contacts endpoint that you should be using. If you need all of the properties, you'll need to add properties to your request URL like this:

https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?hapikey=demo&property=X&pr....

You'll have to explicitly state which properties you'd like returned.

0 Upvotes