APIs & Integrations

SMukhhopadhya
Member

is it possible to have serverless function for public app ?

SOLVE

Hello,

 

I am not sure which is the correct forum to ask this question.

 

I am unsure about the ways for setting up the serverless functions for a public app that I am building. 

Can someone list out the steps for building serverless functions, if possible. Kindly do not list out the steps which is for building serverless functions for private apps.

0 Upvotes
1 Accepted solution
EddyTrotin
Solution
Participant | Platinum Partner
Participant | Platinum Partner

is it possible to have serverless function for public app ?

SOLVE

Hi @SMukhhopadhya !

 

For a public app you can't use HubSpot built-in serverless functions like the private app's one. You have to bring your own backend for calling HubSpot or 3rd parties APIs as well as handling the public app OAuth mechanism. 

 

You can learn more about fetching data in a public app here

 

HubSpot also provides a boilerplate exemple to handle OAuth and an actual call to the contact API in a custom backend for public apps here.

 

Hope this helps!

View solution in original post

0 Upvotes
2 Replies 2
EddyTrotin
Solution
Participant | Platinum Partner
Participant | Platinum Partner

is it possible to have serverless function for public app ?

SOLVE

Hi @SMukhhopadhya !

 

For a public app you can't use HubSpot built-in serverless functions like the private app's one. You have to bring your own backend for calling HubSpot or 3rd parties APIs as well as handling the public app OAuth mechanism. 

 

You can learn more about fetching data in a public app here

 

HubSpot also provides a boilerplate exemple to handle OAuth and an actual call to the contact API in a custom backend for public apps here.

 

Hope this helps!

0 Upvotes
SMukhhopadhya
Member

is it possible to have serverless function for public app ?

SOLVE
Thanks a lot for the reply.
0 Upvotes