APIs & Integrations

CCheung
Member

Contact API call

SOLVE

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
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Contact API call

SOLVE

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.

View solution in original post

0 Upvotes
2 Replies 2
webdew
Guide | Diamond Partner
Guide | Diamond Partner

Contact API call

SOLVE

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. 


dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Contact API call

SOLVE

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.

0 Upvotes