Authenticating the request coming from UI Card

Hello!

I have a question about the request that HubSpot makes to apps in order to render a UI cards. I see that along with the request HubSpot passes `portalId` and `userId` parameters. What’s the suggested practice of matching these to a user in a multi tenant app, where there could be several integrations/connections to the same HubSpot portal?

thank you!

Hi @AntonP

HubSpot also passes the

appId

which will help you with your targeting.

The documentation mentions the API Key (which has been sunset) and last time I tried Private Apps didn’t work so you’ll want to use OAuth for your app.

Have fun

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of Webalite a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world’s first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

Hi @Mike_Eastwood !

Thanks! We are specifically targeting public apps. I.e. we want to develop a public app for HubSpot that uses UI Cards to display data from our app inside the Hubspot.

I understood that in this case for every user the `appId` would be the same, wouldn’t it?