# Authenticating the request coming from UI Card

**URL:** <https://community.hubspot.com/t/authenticating-the-request-coming-from-ui-card/89612>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [September 13, 2023, 11:29pm UTC](https://community.hubspot.com/t/authenticating-the-request-coming-from-ui-card/89612 "2023-09-13T23:29:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonP](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@AntonP](https://community.hubspot.com/u/AntonP)\
**Post date:** [September 13, 2023, 11:29pm UTC](https://community.hubspot.com/t/authenticating-the-request-coming-from-ui-card/89612/1 "2023-09-13T23:29:03Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [September 14, 2023, 1:15am UTC](https://community.hubspot.com/t/authenticating-the-request-coming-from-ui-card/89612/2 "2023-09-14T01:15:45Z")

</div>

Hi @AntonP

HubSpot also passes the

appId

which will help you with your targeting.

The [documentation](https://developers.hubspot.com/docs/api/crm/timeline) 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](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![AntonP](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@AntonP](https://community.hubspot.com/u/AntonP)\
**Post date:** [September 15, 2023, 8:33pm UTC](https://community.hubspot.com/t/authenticating-the-request-coming-from-ui-card/89612/3 "2023-09-15T20:33:05Z")

</div>

Hi [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) !

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?
