Contact API call

CCheung
Member

Hi, I am trying to call the Contacts API using Postman. Although I can successfully call the API and get back some data, I couldn't get all properties in the contact list.

 

In the contact list, I did some customization that to add more columns in the list (address, phone no., member level etc.), but I found that the response could only return email, last name and first name. 

 

May I know it there any special settings are needed after I configured my contact columns?

CCheung_0-1620096451656.png

0 Upvotes
2 Replies 2
dennisedson
Community Manager

Hi @CCheung 
You will need to append a query parameter to your call for properties outside of those default properties

An example: https://api.hubapi.com/crm/v3/objects/contacts?properties=test%2Chotdogs&archived=false

Notice the properties= query param.  the %2 is just an url encoded comma.

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes
webdew
Top Contributor | Diamond Partner

Hi @CCheung ,

Use this for fetching full contacts details:

https://api.hubapi.com/contacts/v1/contact/vid/<vid>/profile?hapikey=demo

Or follow this api documentation :
https://legacydocs.hubspot.com/docs/methods/contacts/get_contact

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.