<?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 Re: Unable to generate correct hash for verifying v2 hubspot signature in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-generate-correct-hash-for-verifying-v2-hubspot/m-p/775025#M62650</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/536989"&gt;@ocalderon&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Private apps are incompatible with this feature. You'll need to &lt;A href="https://developers.hubspot.com/docs/api/creating-an-app" target="_blank" rel="noopener"&gt;create a public app&lt;/A&gt; from a developer portal to get this set up and verified.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;From the docs on &lt;A href="https://developers.hubspot.com/docs/api/private-apps#:~:text=Please%20note%3A%20private%20apps%20do%20not%20support%20custom%20timeline%20events%20or%20webhooks.%20If%20you%20plan%20on%20building%20an%20app%20using%20these%20features%2C%20you%20should%20create%20a%20public%20app%20instead." target="_blank" rel="noopener"&gt;Private Apps&lt;/A&gt; — “&lt;STRONG&gt;Please note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;private apps do not support custom timeline events or &lt;STRONG&gt;webhooks&lt;/STRONG&gt;. If you plan on building an app using these features, you should create a public app instead.”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps get you moving forward! — Jaycee&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 16:46:37 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-03-28T16:46:37Z</dc:date>
    <item>
      <title>Unable to generate correct hash for verifying v2 hubspot signature</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-generate-correct-hash-for-verifying-v2-hubspot/m-p/774364#M62610</link>
      <description>&lt;P&gt;Hi, I'm following the following documentation:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/webhooks/validating-requests" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/webhooks/validating-requests&lt;/A&gt;&amp;nbsp;for validating a request made from hubspot to my webhook endpoint. So far I've had no success. I'm following the same format (Client secret&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;http method&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;URI&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;request body) like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxposthttps://e51c-000-00-0-000.ngrok.io/url/to/webhook{"test_variable":"Test value"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to consider, my app is a private app, so that I had to create a workflow to trigger the webhook. The webhook works as I'm receiving the request on my end, but I'm not being able to generate a correct hash. The way I'm generating the hash (nodejs) is the following one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const hash = createHash('sha256').update(content).digest('hex')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following things:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;http verb in lowercase and upper case&lt;/LI&gt;&lt;LI&gt;as this is a private app there's no client secret, so I'm using the access token for my private app without the first portion which seems to be the same as a client secret (pat-na3-); however I have tried using the whole access token&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 14:49:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-generate-correct-hash-for-verifying-v2-hubspot/m-p/774364#M62610</guid>
      <dc:creator>ocalderon</dc:creator>
      <dc:date>2023-03-28T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to generate correct hash for verifying v2 hubspot signature</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-generate-correct-hash-for-verifying-v2-hubspot/m-p/775025#M62650</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/536989"&gt;@ocalderon&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Private apps are incompatible with this feature. You'll need to &lt;A href="https://developers.hubspot.com/docs/api/creating-an-app" target="_blank" rel="noopener"&gt;create a public app&lt;/A&gt; from a developer portal to get this set up and verified.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;From the docs on &lt;A href="https://developers.hubspot.com/docs/api/private-apps#:~:text=Please%20note%3A%20private%20apps%20do%20not%20support%20custom%20timeline%20events%20or%20webhooks.%20If%20you%20plan%20on%20building%20an%20app%20using%20these%20features%2C%20you%20should%20create%20a%20public%20app%20instead." target="_blank" rel="noopener"&gt;Private Apps&lt;/A&gt; — “&lt;STRONG&gt;Please note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;private apps do not support custom timeline events or &lt;STRONG&gt;webhooks&lt;/STRONG&gt;. If you plan on building an app using these features, you should create a public app instead.”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps get you moving forward! — Jaycee&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:46:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-generate-correct-hash-for-verifying-v2-hubspot/m-p/775025#M62650</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-03-28T16:46:37Z</dc:date>
    </item>
  </channel>
</rss>

