APIs & Integrations

JeffZ1
Member

3rd party integration - how to create fine-grained scope?

SOLVE

Hi everyone, 

 

I need to allow a lead generation company to call the Hubspot API to send leads to my company's hubspot CONTACTS database directly. Is OAuth preferred over API key in this case? 

 

My concern is that how do I prevent the 3rd party from accidently deleting or modifying our current contacts? What happens if a contact's email already exists in our current CRM contacts? How should I define the scope in this case? 

 

Thanks

Jeff

0 Upvotes
1 Accepted solution
mangelet
Solution
Guide | Platinum Partner
Guide | Platinum Partner

3rd party integration - how to create fine-grained scope?

SOLVE

Serverless functions provide a way to write server-side code that interacts with HubSpot and third-party services.

You can use whatever you want. HubSpot serverless functions are available through CMS Enterprise, but any serverless service out there works.

Martin Angeletti
HubSpot Veteran (12+ years)

Worried about messing up your HubSpot? I've got your back.

Join the thousands of people who have discovered how to avoid problems with simple tricks and have started to dominate HubSpot (and not be dominated).

️ Don't get left behind.

→ Click the subscribe button and scroll down to find the opt-in box.

Subscribe

Did I help answer your question? Mark this as a solution.

View solution in original post

0 Upvotes
3 Replies 3
mangelet
Solution
Guide | Platinum Partner
Guide | Platinum Partner

3rd party integration - how to create fine-grained scope?

SOLVE

Serverless functions provide a way to write server-side code that interacts with HubSpot and third-party services.

You can use whatever you want. HubSpot serverless functions are available through CMS Enterprise, but any serverless service out there works.

Martin Angeletti
HubSpot Veteran (12+ years)

Worried about messing up your HubSpot? I've got your back.

Join the thousands of people who have discovered how to avoid problems with simple tricks and have started to dominate HubSpot (and not be dominated).

️ Don't get left behind.

→ Click the subscribe button and scroll down to find the opt-in box.

Subscribe

Did I help answer your question? Mark this as a solution.

0 Upvotes
mangelet
Guide | Platinum Partner
Guide | Platinum Partner

3rd party integration - how to create fine-grained scope?

SOLVE

@JeffZ1 

 

Consider creating a serverless function as a proxy to your HubSpot portal. 

 

Benefits

- You don't need to share your API key with them

- You can check for existing contacts before updating your database

Martin Angeletti
HubSpot Veteran (12+ years)

Worried about messing up your HubSpot? I've got your back.

Join the thousands of people who have discovered how to avoid problems with simple tricks and have started to dominate HubSpot (and not be dominated).

️ Don't get left behind.

→ Click the subscribe button and scroll down to find the opt-in box.

Subscribe

Did I help answer your question? Mark this as a solution.

0 Upvotes
JeffZ1
Member

3rd party integration - how to create fine-grained scope?

SOLVE

Thanks Martin! I appreciate your answer. 

 

Just want to clarify... By serverless function, do you mean using something like AWS API Gateway + Lambda? 

0 Upvotes