# Validate webhook

**URL:** <https://devforum.zoom.us/t/validate-webhook/84886>\
**Category:** API and Webhooks\
**Tags:** webhooks\
**Created:** [March 17, 2023, 12:50pm UTC](https://devforum.zoom.us/t/validate-webhook/84886 "2023-03-17T12:50:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maryna.khavanskaya](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@maryna.khavanskaya](https://devforum.zoom.us/u/maryna.khavanskaya)\
**Post date:** [March 17, 2023, 12:50pm UTC](https://devforum.zoom.us/t/validate-webhook/84886/1 "2023-03-17T12:50:08Z")

</div>

Hello! In our integration, we use the following logic:

1. Create a Meeting via API (use **Server-to-Server OAuth** )
2. Connect to the Meeting using the **Meeting SDK**
3. Use webhooks for events: _Start Meeting_ and _End Meeting_ ( **Server-to-Server OAuth** )

Manual validation of the endpoint URL for webhooks **succeeds**.  
Everything works perfectly!

But there is a problem:

1. Automatic validation does not work and every day we have to manually validate the endpoint URL. Although nothing has changed in the APP. Although we have added automatic validation processing in the code as indicated in the doc - [https://marketplace.zoom.us/docs/api-reference/webhook-reference/#validate-your-webhook-endpoint](https://marketplace.zoom.us/docs/api-reference/webhook-reference/#validate-your-webhook-endpoint)

Tell me how to solve this problem?

1. Why are webhook logs not displayed (PERSONAL APP MANAGEMENT =\> Webhook Logs)?

Thank you very much and have a nice day!

---

<div class="post-metadata">

**Author:** ![vito.co](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vito.co/32/44374_2.png) [@vito.co](https://devforum.zoom.us/u/vito.co)\
**Post date:** [March 28, 2023, 12:34pm UTC](https://devforum.zoom.us/t/validate-webhook/84886/2 "2023-03-28T12:34:21Z")

</div>

Hi @elisa.zoom , @MaxM  
Could you help us with this issue?

Thanks.

listing:

```auto
public function webhookHandler(Request $request)
	{
		$request_body = $request->all();
		Log::debug('webhookHandler:request', [
			$request_body,
			$request->header('x-zm-signature'),
		]);

		if ($this->verified_signature($request)) {

			if ($request_body['event'] == 'endpoint.url_validation') {
				$response = $this->zoom_url_validate($request_body);

				Log::debug('webhookHandler:url_validation', [
					$response,
				]);

				return response()->json($response, 200);
			} else {
				$message = 'Authorized request to ' . config('app.name');

				Log::debug('webhookHandler: ' . $message, [
					$request_body,
					'event' => $request_body['event'],
				]);

				// business logic here, example make API request to Zoom or 3rd party

				return response()->json(['message' => $message], 200);
			}
		} else {
			Log::debug('webhookHandler:verified_signature', [
				$request_body,
			]);

			return response()->json(['message' => 'Unauthorized request to ' . config('app.name')], 401);
		}

```

---

<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:** [May 19, 2023, 4:54pm UTC](https://devforum.zoom.us/t/validate-webhook/84886/3 "2023-05-19T16:54:32Z")

</div>

Hey @vito.co  
Sorry for the late reply to this!  
Were you able to validate your endpoint URL?

---

<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:** [May 22, 2024, 8:31am UTC](https://devforum.zoom.us/t/validate-webhook/84886/4 "2024-05-22T08:31:26Z")

</div>

Closed on May 22, 2024, 8:31am UTC

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