X-Hubspot-Signature validation fails


I was hoping someone would help me cause I am stuck. I am trying to implement the x-hubspot-signature validation but it is always failing when processing webhooks post requests. My code generates the same hash value when using the values provided by the article https://developers.hubspot.com/docs/faq/validating-requests-from-hubspot. But when it comes to processing any webhooks payloads generated by contact updates for example, the hash value that my code generates is not the same as the hash value provided by the x-hubspot-signature header.

Below you can see an example of the concatenated string with sensitive values being x.

xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxPOSThttps://xxxxx.xxxxxxx.xxx:50443/xxx/xxxxxx[{"objectId":44951,"propertyName":"lastname","propertyValue":"Customer 15 T2","changeSource":"CRM_UI","eventId":4186030181,"subscriptionId":76551,"portalId":4584743,"appId":170004,"occurredAt":1539870100515,"subscriptionType":"contact.propertyChange","attemptNumber":3}]


Hi @InProductionDev,

Can you send me the following so that I can take a closer look for you?

  1. Your App ID.
  2. A full request including: the method, the url, the full body and the HubSpot Signature

This way I'll be able to test on my own end. Thank you!


Just did. Thank you for taking a look at this.