APIs & Integrations

CCheung
Miembro

Contact API call

resolver

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 Me gusta
1 Soluciones aceptada
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Contact API call

resolver

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.

Ver la solución en mensaje original publicado

0 Me gusta
2 Respuestas 2
webdew
Guía | Partner nivel Diamond
Guía | Partner nivel Diamond

Contact API call

resolver

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
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Contact API call

resolver

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 Me gusta