APIs & Integrations

CCheung
Membro

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 Avaliação positiva
1 Solução aceita
dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da 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.

Exibir solução no post original

0 Avaliação positiva
2 Respostas 2
webdew
Orientador(a) | Parceiro Diamante
Orientador(a) | Parceiro Diamante

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
Solução
Equipe de Produto da HubSpot
Equipe de Produto da 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 Avaliação positiva