APIs & Integrations

mhoward
Member

How do I construct the url to call the GetAll Contacts api?

Theres seems to a piece missing from the docs. How does it know which portal Im referencing? Heres an example Im trying to use.

https://api.hubapi.com/contacts/v1/lists?count=2&hapikey=111111&userId=300000

Thanks

0 Upvotes
4 Replies 4
JButt
Member

How do I construct the url to call the GetAll Contacts api?

 

To construct the URL for calling the GetAll Contacts API in the context of Budgeting Enterprise, follow this format: 

 

https://api.budgetingenterprise.com/contacts

 

Replace "api.budgetingenterprise.com" with the actual domain or endpoint for the Budgeting Enterprise API. This URL will allow you to retrieve all contacts by making a GET request to the specified API endpoint.

 

 
 

 

0 Upvotes
mhoward
Member

How do I construct the url to call the GetAll Contacts api?

I finally figured it out. I had to click on the Integration link and generate a key from there, The docs do not mention anything in that regard. The key I was using was from the dev portal, this was to simple to be so confusing, Docs are not correct!

0 Upvotes
zwolfson
HubSpot Employee
HubSpot Employee

How do I construct the url to call the GetAll Contacts api?

Hey @mhoward

HubSpot knows the portal you are referencing because hapikeys (and OAuth tokens for that matter) are unique to a portal so there would be no need to reference it in your request.

Thanks,
Zack

0 Upvotes
mhoward
Member

How do I construct the url to call the GetAll Contacts api?

Can someone point me in the right direction, this is very frustrating, it should be very simple, looking through the forums I see url’s constructed very different then what the api docs suggest.

0 Upvotes