APIs & Integrations

cbarnes199
Member

URL syntax for getting all contacts and a specific list of properties

I am having trouble getting the query string syntax correct so that when I get all contacts I get just a half dozen or so properties.

Here is an example of the url I am trying:

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=vid&proprty=address&hapikey=

0 Upvotes
1 Reply 1
3PETE
HubSpot Employee
HubSpot Employee

URL syntax for getting all contacts and a specific list of properties

The endpoint that returns all contacts doesn’t return all of the properties. Usually it is just vid,first name, last name, email address(maybe one or two more). If you would like to get back other specific properties you would need to add them to the URL as a parameter.

0 Upvotes