Not able to get the contact owner of a contact via the Contacts API


#1

Hi,

I am trying to get the contact owner for recently modified/created contacts and I am using this End Point : GET /contacts/v1/lists/recently_updated/contacts/recent

But, I don't find the contact owner in the JSON Output.

Kindly help!


#2

Waiting for a response.


#3

Waiting for a response.


#4

Waiting for a response.


#5

Hey @ricky23, Apologies for the delay here.

The best way to ensure you're getting the owner property is to use the "Property" param in the request URL as per the docs under "optional parameters". Your URL would look something like this:

https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?hapikey=xxxxxxxxxx&count=1&property=hubspot_owner_id

Make sure to use the internal name of Contact owner, which is as in the url, hubspot_owner_id