APIs & Integrations

JDeAngelis
Member

Requesting custom properties with private app integration

Hello,  I'm moving from an API key to a private app.  When importing data from Hubspot, I typically request a set of custom company properties following the API key. How would I do this with the private app?    

OLD WAY

get_all_companies_url = "https://api.hubapi.com/companies/v2/companies/paged?"
addedprops='&properties=producer_code&properties=producer_location_code'

get_url = get_all_companies_url + api key + addedprops

 

Thanks for your help.

John

 

0 Upvotes
1 Reply 1
skimura
Contributor | Platinum Partner
Contributor | Platinum Partner

Requesting custom properties with private app integration

@JDeAngelis 

 

Hi. 

 

Very simple way is remove query 'hapikey=XXXX', 

And add http header 'Authorization: Bearer {private app token}'.

 

How about try this?

 

https://developers.hubspot.com/docs/api/migrate-an-api-key-integration-to-a-private-app#update-the-a...

 

Thanks.

0 Upvotes