# I am unable to validate my endpoint url

**URL:** <https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961>\
**Category:** API and Webhooks\
**Tags:** webhooks, api\
**Created:** [February 15, 2025, 2:17pm UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961 "2025-02-15T14:17:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sridharan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sridharan/32/56936_2.png) [@Sridharan](https://devforum.zoom.us/u/Sridharan)\
**Post date:** [February 15, 2025, 2:17pm UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/1 "2025-02-15T14:17:10Z")

</div>

For example, when a Zoom meeting invite is sent via email, and the recipient opens the link and signs in, their information should be captured and stored in a custom Salesforce object.

I have created a public site in Salesforce, enabled my Apex class through public access settings, and set up a webhook app in the Zoom Marketplace.

However, when I enter my public site URL in the Event Notification Endpoint URL section in Zoom, I receive the error: “URL validation failed. Try again later.”

My apex class:  
@RestResource(urlMapping=‘/zoomWebhook/\*’)

global with sharing class ZoomWebhookHandler {

```
@HttpPost

global static void handleWebhook() {

    RestRequest req = RestContext.request;

    RestResponse res = RestContext.response;

    try {

        // Parse JSON request

        String requestBody = req.requestBody.toString();

        System.debug('Zoom Webhook Payload: ' + requestBody);

        Map<String, Object> jsonMap = (Map<String, Object>) JSON.deserializeUntyped(requestBody);

        Map<String, Object> payload = (Map<String, Object>) jsonMap.get('payload');

        if (payload != null) {

            String meetingId = (String) payload.get('id');

            List<Object> participants = (List<Object>) payload.get('participant');

            for (Object participantObj : participants) {

                Map<String, Object> participant = (Map<String, Object>) participantObj;

                String email = (String) participant.get('email');

                String userName = (String) participant.get('user_name');

                // Find the matching Contact

                List<Contact> contactList = [SELECT Id FROM Contact WHERE Email = :email LIMIT 1];

                if (!contactList.isEmpty()) {

                    // Create a new Zoom Meeting record

                    Zoom_Meeting __c zoomRecord = new Zoom_Meeting__ c(

                        Contact__c = contactList[0].Id,

                        Meeting_ID__c = meetingId,

                        Participant_Email__c = email,

                        Participant_Name__c = userName

                    );

                    insert zoomRecord;

                }

            }

        }

        // Respond with HTTP 200 OK

        res.statusCode = 200;

        res.responseBody = Blob.valueOf('{"message": "Success"}');

    } catch (Exception e) {

        System.debug('Error processing webhook: ' + e.getMessage());

        // Respond with HTTP 400 Bad Request

        res.statusCode = 400;

        res.responseBody = Blob.valueOf('{"message": "Error: ' + e.getMessage() + '"}');

    }

}

```

---

<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:** [February 24, 2025, 5:33pm UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/2 "2025-02-24T17:33:54Z")

</div>

Hi @Sridharan  
Thanks for reaching out to us and welcome to the Zoom Developer Forum!  
Have you been able to troubleshoot this on your end? are you able to validate your endpoint URL?

---

<div class="post-metadata">

**Author:** ![Sridharan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sridharan/32/56936_2.png) [@Sridharan](https://devforum.zoom.us/u/Sridharan)\
**Post date:** [February 25, 2025, 5:04am UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/3 "2025-02-25T05:04:16Z")

</div>

Hi @elisa.zoom,  
I couldn’t troubleshoot my issue with my end. Thanks for replying for this.

---

<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:** [February 25, 2025, 7:08pm UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/4 "2025-02-25T19:08:58Z")

</div>

Thanks for getting back to me @Sridharan  
Looks like you are not validating your endpoint URL, here is a link to our Docs on how to do that:

> **[Using webhooks - Zoom Developers](https://developers.zoom.us/docs/api/webhooks/#validate-your-webhook-endpoint)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<div class="post-metadata">

**Author:** ![Sridharan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sridharan/32/56936_2.png) [@Sridharan](https://devforum.zoom.us/u/Sridharan)\
**Post date:** [February 26, 2025, 4:26am UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/5 "2025-02-26T04:26:45Z")

</div>

Hi @elisa.zoom,  
Thank you for getting back. apart from doc, can you figure out if there is any issue with my apex code?

---

<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:** [February 26, 2025, 2:45pm UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/6 "2025-02-26T14:45:47Z")

</div>

Hey @Sridharan  
Yes, you are not handling the endpoint URL validation. Make sure to include that in your code

This is a sample code snippet in node.js

```auto
const crypto = require('crypto')

// Webhook request event type is a challenge-response check
if(request.body.event === 'endpoint.url_validation') {
  const hashForValidate = crypto.createHmac('sha256', ZOOM_WEBHOOK_SECRET_TOKEN).update(request.body.payload.plainToken).digest('hex')

  response.status(200)
  response.json({
    "plainToken": request.body.payload.plainToken,
    "encryptedToken": hashForValidate
  })
}

```

---

<div class="post-metadata">

**Author:** ![Sridharan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sridharan/32/56936_2.png) [@Sridharan](https://devforum.zoom.us/u/Sridharan)\
**Post date:** [February 27, 2025, 9:38am UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/7 "2025-02-27T09:38:34Z")

</div>

Hi @elisa.zoom ,  
Thank you for giving me this code. right now I’m working in apex code so do we need to include this node.js code with apex or convert this node.js into apex?

---

<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:** [February 27, 2025, 6:58pm UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/8 "2025-02-27T18:58:08Z")

</div>

Hey there, you will need to convert the code into your apex

---

<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 3, 2026, 10:34am UTC](https://devforum.zoom.us/t/i-am-unable-to-validate-my-endpoint-url/126961/9 "2026-03-03T10:34:59Z")

</div>

Closed on March 3, 2026, 10:34am UTC

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