# Unable to verify zoom's web hook request with Zoom's header

**URL:** <https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819>\
**Category:** API and Webhooks\
**Tags:** webhooks, recording\
**Created:** [June 8, 2023, 7:37am UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819 "2023-06-08T07:37:36Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![alw.zoom12](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@alw.zoom12](https://devforum.zoom.us/u/alw.zoom12)\
**Post date:** [June 8, 2023, 7:37am UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/1 "2023-06-08T07:37:37Z")

</div>

I have been attempting to use the webhook feature to receive real-time updates on recording completion for my Zoom account, but I have encountered a significant issue. Despite following the instructions provided by Zoom, I have been unable to generate the matching signature for verifying the webhook events.

I have thoroughly reviewed the documentation provided by Zoom, when attempting to verify the webhook events with Zoom headers, the signature generated by my system does not match the signature provided by Zoom. As a result, I am unable to verify the authenticity of the webhook events, which makes it impossible to reliably use this feature. Can you please help me into this issue

Technical details:  
We are using python 3 and sample code am using is as follows:

```auto

import json
import hashlib
import hmac
message = "v0:{}:{}".format(
    request.headers['X-Zm-Request-Timestamp'], 
    json.dumps(request.data, separators=(',', ':'))
)
hash_for_verify = hmac.new(
    secret.encode(),
    msg=message.encode(),
    digestmod=hashlib.sha256
).hexdigest()
signature = "v0={}".format(hash_for_verify)
if signature == request.headers['X-Zm-Signature']:
    print("signatures matched")

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [June 20, 2023, 9:38pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/2 "2023-06-20T21:38:59Z")

</div>

Hi @alw.zoom12  
Thanks for reaching out to us and welcome to our community!  
It has been a while since you posted this, so I am just checking in with you to see if you have been able to troubleshoot this issue or if you still need assistnace from us?

---

<div class="post-metadata">

**Author:** ![alw.zoom12](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@alw.zoom12](https://devforum.zoom.us/u/alw.zoom12)\
**Post date:** [June 25, 2023, 9:19am UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/3 "2023-06-25T09:19:14Z")

</div>

Yes, I am still facing this issue.

---

<div class="post-metadata">

**Author:** ![mpzoomuser](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mpzoomuser](https://devforum.zoom.us/u/mpzoomuser)\
**Post date:** [June 26, 2023, 8:05pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/4 "2023-06-26T20:05:13Z")

</div>

I’m facing the same issue, but we are using c#

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [June 28, 2023, 5:12pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/5 "2023-06-28T17:12:33Z")

</div>

Thanks for confirming this  
Can you confirm that the signature you are generating, matches the headers? @alw.zoom12

---

<div class="post-metadata">

**Author:** ![mpzoomuser](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mpzoomuser](https://devforum.zoom.us/u/mpzoomuser)\
**Post date:** [June 29, 2023, 3:30pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/6 "2023-06-29T15:30:11Z")

</div>

Header value doesn’t match with the signature.

---

<div class="post-metadata">

**Author:** ![alw.zoom12](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@alw.zoom12](https://devforum.zoom.us/u/alw.zoom12)\
**Post date:** [July 2, 2023, 8:14am UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/7 "2023-07-02T08:14:14Z")

</div>

Header value doesn’t match with the signature.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 5, 2023, 1:55pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/8 "2023-07-05T13:55:01Z")

</div>

Thanks @mpzoomuser and @alw.zoom12  
Have you taken a look at our sample app here?

> <https://github.com/zoom/webhook-sample/blob/master/index.js>

Could you please make sure you are generating the signature correctly

---

<div class="post-metadata">

**Author:** ![odynai](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@odynai](https://devforum.zoom.us/u/odynai)\
**Post date:** [July 12, 2023, 10:31am UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/9 "2023-07-12T10:31:07Z")

</div>

Having the exact same error @elisa.zoom , tried building my own api with fastapi, didn’t work.

I thought maybe was my implementation but no, trying the sample app also didn’t work, seemed like zoom wasn’t sending any request to my url.

Would love to get help on this as this is needed for the service we are building. Don’t know if it has to do with using ngrok that the requests aren’t being sent.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 12, 2023, 5:52pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/10 "2023-07-12T17:52:21Z")

</div>

Hi @odynai  
You should be able to use ngrok to receive your requests.  
Are you still experiencing this issue? have you had any luck by running our sample app?

---

<div class="post-metadata">

**Author:** ![odynai](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@odynai](https://devforum.zoom.us/u/odynai)\
**Post date:** [July 12, 2023, 6:04pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/11 "2023-07-12T18:04:24Z")

</div>

@elisa.zoom yes yes I am still with the same issue, I don’t receive any request from zoom, it does not even give an error. So I don’t know if its an issue from zoom side.

Tested making a request from my computer to the api as a test and went succesfully

No luck running the sample app followed the exact steps from the tutorial.

There is anything else I can try or do? We really need this and it seems to not be working as intended

---

<div class="post-metadata">

**Author:** ![odynai](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@odynai](https://devforum.zoom.us/u/odynai)\
**Post date:** [July 13, 2023, 3:32pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/12 "2023-07-13T15:32:49Z")

</div>

Is there a way I can contact you to have assistance with the issue?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 13, 2023, 9:25pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/13 "2023-07-13T21:25:33Z")

</div>

Hi @odynai  
Could you please verify that you are using the right value for your secret token when running the sample app?  
Please note that there are 2 values present in your dashboard :

- Secret token
- Verification token

Make sure that you are using the secret token in the sample app when running it

---

<div class="post-metadata">

**Author:** ![odynai](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@odynai](https://devforum.zoom.us/u/odynai)\
**Post date:** [July 14, 2023, 7:41pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/14 "2023-07-14T19:41:43Z")

</div>

Yes I did use the secret token and didn´t work

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [July 14, 2023, 9:20pm UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/15 "2023-07-14T21:20:50Z")

</div>

@odynai can you try this logic, I just tested it and it works:

```auto
app.post('/webhook', (req, res) => {
  const webhookEvent = req.body.event;
  
  if (webhookEvent === 'endpoint.url_validation') {
    const plainToken = req.body.payload.plainToken;
    const hashedToken = crypto.createHmac('sha256', ZOOM_WEBHOOK_SECRET_TOKEN)
                            .update(plainToken)
                            .digest('hex');
    
    const responseJson = {
      plainToken: plainToken,
      encryptedToken: hashedToken
    };
    
    res.status(200).json(responseJson);
  } else {
    // Handle other webhook events here
    console.log('Received webhook:', req.body);

    // Send a response to acknowledge the webhook
    res.sendStatus(200);
  }
});

```

---

<div class="post-metadata">

**Author:** ![odynai](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@odynai](https://devforum.zoom.us/u/odynai)\
**Post date:** [July 15, 2023, 9:02am UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/16 "2023-07-15T09:02:47Z")

</div>

That worked great, thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 18, 2024, 12:38am UTC](https://devforum.zoom.us/t/unable-to-verify-zooms-web-hook-request-with-zooms-header/89819/17 "2024-07-18T00:38:50Z")

</div>

Closed on July 18, 2024, 12:38am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
