<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API authentication in AWS Lambda function in Custom Workflow Action (public app) in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-authentication-in-AWS-Lambda-function-in-Custom-Workflow/m-p/1196791#M84113</link>
    <description>&lt;P&gt;I am trying to build a custom workflow action for a public app. It will contain some some logic using an external AWS Lamdba function. Once the action is triggered the "ActionURL" will trigger the Lamdba function. In the Lambda function I want to assign an owner to a contact using the API. However, in the Lamdba function I do not have the API/Authentication available for the user. How can I handle? I like it to make a public app so I cannot store the API credentials in the secrets manager in API as it will be different for every user.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Sep 2025 18:59:24 GMT</pubDate>
    <dc:creator>siempeters</dc:creator>
    <dc:date>2025-09-04T18:59:24Z</dc:date>
    <item>
      <title>API authentication in AWS Lambda function in Custom Workflow Action (public app)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-authentication-in-AWS-Lambda-function-in-Custom-Workflow/m-p/1196791#M84113</link>
      <description>&lt;P&gt;I am trying to build a custom workflow action for a public app. It will contain some some logic using an external AWS Lamdba function. Once the action is triggered the "ActionURL" will trigger the Lamdba function. In the Lambda function I want to assign an owner to a contact using the API. However, in the Lamdba function I do not have the API/Authentication available for the user. How can I handle? I like it to make a public app so I cannot store the API credentials in the secrets manager in API as it will be different for every user.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 18:59:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-authentication-in-AWS-Lambda-function-in-Custom-Workflow/m-p/1196791#M84113</guid>
      <dc:creator>siempeters</dc:creator>
      <dc:date>2025-09-04T18:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: API authentication in AWS Lambda function in Custom Workflow Action (public app)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-authentication-in-AWS-Lambda-function-in-Custom-Workflow/m-p/1196840#M84118</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/182709"&gt;@siempeters&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;Thank you for reaching out to the Community!&lt;BR /&gt;I'd like to invite some community members who are subject matter experts to join this conversation.&lt;BR /&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/577159"&gt;@GiantFocal&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/945160"&gt;@BrandonWoodruff&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&lt;/SPAN&gt; - Would you be able to share any insights on this? Your expertise would be greatly appreciated.&lt;BR /&gt;Best,&lt;BR /&gt;Victor&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 21:57:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-authentication-in-AWS-Lambda-function-in-Custom-Workflow/m-p/1196840#M84118</guid>
      <dc:creator>Victor_Becerra</dc:creator>
      <dc:date>2025-09-04T21:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: API authentication in AWS Lambda function in Custom Workflow Action (public app)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-authentication-in-AWS-Lambda-function-in-Custom-Workflow/m-p/1197752#M84167</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way that you would want to do it is by storing the Oauth creditials first through a different flow, and then have the Lambda function pull from the Oauth credentials. You would want to do it through the following flow:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Verify the request came from HubSpot.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Identify the portalId&amp;nbsp;from the payload.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Look up that portal’s &lt;STRONG&gt;stored refresh token&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Exchange the refresh token for an &lt;STRONG&gt;access token&lt;/STRONG&gt; (if needed).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Call HubSpot APIs with that access token to &lt;STRONG&gt;assign an owner&lt;/STRONG&gt; by updating hubspot_owner_id&amp;nbsp;on the contact.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here are some OAuth Docs from the old docs:&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/apps/legacy-apps/authentication/working-with-oauth" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/apps/legacy-apps/authentication/working-with-oauth&lt;/A&gt;&lt;BR /&gt;There is also the new development platform that now sets apps as marketplace, or allows private apps to authenticate through Oauth. The docs are found here:&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/oauth/working-with-oauth" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/oauth/working-with-oauth&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps, or if you have any other questions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;SPAN class="lia-unicode-emoji"&gt;&lt;SPAN class="lia-unicode-emoji"&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Was I able to help answer your question? Help the community by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;marking it as a solution.&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20.365535248041773%" height="191px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrandonWoodruff_0-1757337851297.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/155065iEF3329F9679817B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrandonWoodruff_0-1757337851297.jpeg" alt="BrandonWoodruff_0-1757337851297.jpeg" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="79.50391644908615%" height="191px"&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.linkedin.com/in/brandon-woody-woodruff/" target="_blank" rel="noopener nofollow noreferrer"&gt;Brandon Woodruff&lt;/A&gt;&lt;BR /&gt;&lt;/STRONG&gt;Senior Software Developer @&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.pearagon.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;Pearagon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Still have questions? Reach out at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="mailto:brandon@pearagon.com" target="_blank" rel="noopener nofollow noreferrer"&gt;brandon@pearagon.com&lt;/A&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrandonWoodruff_1-1757337851226.png" style="width: 200px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/155064i55931AD8A079FDFB/image-size/small?v=v2&amp;amp;px=200" role="button" title="BrandonWoodruff_1-1757337851226.png" alt="BrandonWoodruff_1-1757337851226.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 13:24:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-authentication-in-AWS-Lambda-function-in-Custom-Workflow/m-p/1197752#M84167</guid>
      <dc:creator>BrandonWoodruff</dc:creator>
      <dc:date>2025-09-08T13:24:26Z</dc:date>
    </item>
  </channel>
</rss>

