APIs & Integrations

ocalderon
Mitglied

Unable to generate correct hash for verifying v2 hubspot signature

lösung

Hi, I'm following the following documentation: https://developers.hubspot.com/docs/api/webhooks/validating-requests 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 + http method + URI + request body) like this:

 

 

 

xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxposthttps://e51c-000-00-0-000.ngrok.io/url/to/webhook{"test_variable":"Test value"}

 

 

 

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:

 

 

 

const hash = createHash('sha256').update(content).digest('hex')

 

 

 

I have tried the following things:

  • http verb in lowercase and upper case
  • 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

What I'm doing wrong?

0 Upvotes
1 Akzeptierte Lösung
Jaycee_Lewis
Lösung
Community-Manager/-in
Community-Manager/-in

Unable to generate correct hash for verifying v2 hubspot signature

lösung

Hey, @ocalderon 👋 Private apps are incompatible with this feature. You'll need to create a public app from a developer portal to get this set up and verified. 

From the docs on Private Apps — “Please note: private apps do not support custom timeline events or webhooks. If you plan on building an app using these features, you should create a public app instead.”

 

I hope this helps get you moving forward! — Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
1 Antwort
Jaycee_Lewis
Lösung
Community-Manager/-in
Community-Manager/-in

Unable to generate correct hash for verifying v2 hubspot signature

lösung

Hey, @ocalderon 👋 Private apps are incompatible with this feature. You'll need to create a public app from a developer portal to get this set up and verified. 

From the docs on Private Apps — “Please note: private apps do not support custom timeline events or webhooks. If you plan on building an app using these features, you should create a public app instead.”

 

I hope this helps get you moving forward! — Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes