We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jun 13, 2019 3:56 PM
Hi @fernando2,
First, I've removed the API key from your posts. But I would strongly recommend deactivating your current key and then generating a new one, which you can read about here: https://knowledge.hubspot.com/articles/kcs_article/integrations/how-do-i-get-my-hubspot-api-key. By posting the key in the forum here, you've compromised it.
As for your specific code, could you give me a bit more info about what "Client" and "Contacts" are? Are you making requests to our Contacts API (https://developers.hubspot.com/docs/methods/contacts/get_contacts for example)?
I'm not entirely sure what your data looks like, but from our API you can include the properties that you want in the response for each contact. It's documented in the URL I included above, but you can include &property= in the query string of your request URL. So for example: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=XXXX&property=email&property=first... . That will include the values for those properties in the response for each object, assuming the contact record has values for those properties.
If you're still having trouble, just let me know how you're making the request and I'll be happy to look again.
Leland ScanlanHubSpot Developer Support |