# Issue with Webhook Validation

**URL:** <https://devforum.zoom.us/t/issue-with-webhook-validation/83855>\
**Category:** API and Webhooks\
**Tags:** webhooks\
**Created:** [February 28, 2023, 12:57pm UTC](https://devforum.zoom.us/t/issue-with-webhook-validation/83855 "2023-02-28T12:57:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksarkar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ksarkar/32/19636_2.png) [@ksarkar](https://devforum.zoom.us/u/ksarkar)\
**Post date:** [February 28, 2023, 12:57pm UTC](https://devforum.zoom.us/t/issue-with-webhook-validation/83855/1 "2023-02-28T12:57:05Z")

</div>

I am using following Laravel code to check webhook validation. But I unable to validate it, everytime it’s showing **“URL validation failed. Try again later.”**

if ($request-\>event === ‘endpoint.url\_validation’) {  
$hashForValidate = hash\_hmac(‘sha256’, $request-\>payload[‘plainToken’], env(‘ZOOM\_WEBHOOK\_SECRET\_TOKEN’));

```
    $response = [
        'message' => [
            'plainToken' => $request->payload['plainToken'],
            'encryptedToken' => $hashForValidate,
        ],
        'status' => 200,
    ];

    logger()->info($response['message']);

    return response()->json($response['message'], $response['status']);
}

```

---

<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:** [March 3, 2023, 8:25pm UTC](https://devforum.zoom.us/t/issue-with-webhook-validation/83855/2 "2023-03-03T20:25:37Z")

</div>

Hi @ksarkar  
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
Have you been able to troubleshoot this issue?  
Here is a link to our sample app on github for the Webhook implementation:

> **[GitHub - zoom/webhook-sample-node.js: Receive Zoom Webhooks](https://github.com/zoom/webhook-sample-node.js)**
>
> Receive Zoom Webhooks. Contribute to zoom/webhook-sample-node.js development by creating an account on GitHub.

Hope this helps,  
elisa

---

<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:** [March 6, 2024, 12:02pm UTC](https://devforum.zoom.us/t/issue-with-webhook-validation/83855/3 "2024-03-06T12:02:25Z")

</div>

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