# Unable to Validate Zoom Webhook (Serv2ServOAuth) with N8N

**URL:** <https://devforum.zoom.us/t/unable-to-validate-zoom-webhook-serv2servoauth-with-n8n/91840>\
**Category:** API and Webhooks\
**Tags:** webhooks\
**Created:** [July 14, 2023, 1:13pm UTC](https://devforum.zoom.us/t/unable-to-validate-zoom-webhook-serv2servoauth-with-n8n/91840 "2023-07-14T13:13:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech6](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@tech6](https://devforum.zoom.us/u/tech6)\
**Post date:** [July 14, 2023, 1:13pm UTC](https://devforum.zoom.us/t/unable-to-validate-zoom-webhook-serv2servoauth-with-n8n/91840/1 "2023-07-14T13:13:50Z")

</div>

Hi, I cannot validate any webhooks from our Zoom App (Srv 2 Srv OAuth) since last week.  
It would fail the auto validation occasionally, but I usually could manually validate it from the Zoom App settings after 2-3 attempts. Now I cannot validate any other the webhooks anymore.

I do not see any errors, and I have confirmed the Hash created is correct.

We use N8N for the webhook endpoint. It is receiving the webhook fine, hashing the Token using our Secret and then returning that plus the plain token in Json, and code 200 as a response to the webhook.

Has anything changed recently (within the last 2 weeks) that may be impacting this?  
I reached out to support at Zoom, but they told me they couldnt assist and to try here instead.

Any assistance would be amazing!

---

<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:48pm UTC](https://devforum.zoom.us/t/unable-to-validate-zoom-webhook-serv2servoauth-with-n8n/91840/2 "2023-07-14T21:48:07Z")

</div>

@tech6 here is a sample code that worked for me:

```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:** ![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 17, 2024, 1:24pm UTC](https://devforum.zoom.us/t/unable-to-validate-zoom-webhook-serv2servoauth-with-n8n/91840/3 "2024-07-17T13:24:19Z")

</div>

Closed on July 17, 2024, 1:24pm UTC

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