# Webhook response is invalid

**URL:** <https://devforum.zoom.us/t/webhook-response-is-invalid/42325>\
**Category:** API and Webhooks\
**Created:** [February 2, 2021, 6:04pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325 "2021-02-02T18:04:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![markus](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markus/32/22459_2.png) [@markus](https://devforum.zoom.us/u/markus)\
**Post date:** [February 2, 2021, 6:04pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/1 "2021-02-02T18:04:07Z")

</div>

**Description**  
I have added a webhook on completion of recording, I am data on the given endpoint but that JSON is not valid, I pasted that JSON data in postman then it as says invalid, last two objects are not formatted properly, then for testing I formatted them correctly then it worked

**Error**

**Which App Type (OAuth / Chatbot / JWT / Webhook)?** - Webhook  
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

This is the response I am getting from webhook, last two objects

“requestParameters”: undefined,  
“responseData”: undefined

are not formatted properly

{  
“applicationId”: “LPIKQ7APRnuMeQSAxy96OA”,  
“monitorTime”: 1612229203425,  
“traceId”: “Webhook\_f684e205779640278297b7e0786149a2”,  
“accountId”: “accountId”,  
“event”: “recording.completed”,  
“status”: “200”,  
“userId”: “userId”,  
“url”: “/zoomVimeo.php”,  
“subscriptionId”: “subscriptionId”,  
“requestHeaders”: “N/A”,  
“requestBody”: {  
“payload”: {  
“account\_id”: “account\_id”,  
“object”: {  
“uuid”: “H1UYTNGpTTObGQRHupnQuw==”,  
“id”: 4112356604,  
“account\_id”: “account\_id”,  
“host\_id”: “account\_id”,  
“topic”: “ABC’ Personal Meeting Room”,  
“type”: 4,  
“start\_time”: “2021-02-01T23:57:07Z”,  
“timezone”: “”,  
“host\_email”: “[abc@abc.com](mailto:abc@abc.com)”,  
“duration”: 71,  
“total\_size”: 364498707,  
“recording\_count”: 3,  
“share\_url”: “share\_url”,  
“recording\_files”: [  
{  
“id”: “645ae3b8-2fb5-4126-ba1b-5079a1803959”,  
“meeting\_id”: “H1UYTNGpTTObGQRHupnQuw==”,  
“recording\_start”: “2021-02-02T00:08:51Z”,  
“recording\_end”: “2021-02-02T01:19:51Z”,  
“file\_type”: “CHAT”,  
“file\_extension”: “TXT”,  
“file\_size”: 897,  
“play\_url”: “play\_url”,  
“download\_url”: “download\_url”,  
“status”: “completed”,  
“recording\_type”: “chat\_file”  
},  
{  
“id”: “0d3fc852-105d-44c7-8757-714181dcfc2b”,  
“meeting\_id”: “H1UYTNGpTTObGQRHupnQuw==”,  
“recording\_start”: “2021-02-02T00:08:51Z”,  
“recording\_end”: “2021-02-02T01:19:51Z”,  
“file\_type”: “M4A”,  
“file\_extension”: “M4A”,  
“file\_size”: 67796180,  
“play\_url”: “play\_url”,  
“download\_url”: “download\_url”,  
“status”: “completed”,  
“recording\_type”: “audio\_only”  
},  
{  
“id”: “ed6b9dcc-5c98-474b-88a7-6e912b554b00”,  
“meeting\_id”: “H1UYTNGpTTObGQRHupnQuw==”,  
“recording\_start”: “2021-02-02T00:08:51Z”,  
“recording\_end”: “2021-02-02T01:19:51Z”,  
“file\_type”: “MP4”,  
“file\_extension”: “MP4”,  
“file\_size”: 296701630,  
“play\_url”: “play\_url”,  
“download\_url”: “download\_url”,  
“status”: “completed”,  
“recording\_type”: “shared\_screen\_with\_speaker\_view”  
}  
],  
“password”: “123”  
}  
},  
“event\_ts”: 1612229189588,  
“event”: “recording.completed”,  
“download\_token”: “download\_token”  
},  
“responseHeaders”: {  
“Server”: “nginx/1.18.0”,  
“Content-Length”: “0”,  
“Date”: “Tue, 02 Feb 2021 01:26:43 GMT”,  
“Content-Type”: “text/html; charset=UTF-8”  
},  
“runTime”: “452”,  
“ttl”: 1613438805,  
“requestParameters”: undefined,  
“responseData”: undefined  
}

**Screenshots (If applicable)**

**Additional context**  
In sample response, everything is fine except the last two objects i.e.

“requestParameters”: undefined,  
“responseData”: undefined

When I convert them into a “string” then it works

“requestParameters”: “undefined”,  
“responseData”: “undefined”

---

<div class="post-metadata">

**Author:** ![markus](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markus/32/22459_2.png) [@markus](https://devforum.zoom.us/u/markus)\
**Post date:** [February 3, 2021, 1:28pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/2 "2021-02-03T13:28:21Z")

</div>

Screenshot - [Screenshot by Lightshot](https://prnt.sc/y4bp4s) & [Screenshot by Lightshot](https://prnt.sc/y4brw8)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 3, 2021, 8:41pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/3 "2021-02-03T20:41:00Z")

</div>

Hey @markus ,

> [@markus](#):
>
> ,  
> “responseHeaders”: {  
> “Server”: “nginx/1.18.0”,  
> “Content-Length”: “0”,  
> “Date”: “Tue, 02 Feb 2021 01:26:43 GMT”,  
> “Content-Type”: “text/html; charset=UTF-8”  
> },  
> “runTime”: “452”,  
> “ttl”: 1613438805,  
> “requestParameters”: undefined,  
> “responseData”: undefined  
> }

Are you sure the last two objects are the in the request body of the webhook?

They look like meta data from the request and not apart of the webhook.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![markus](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markus/32/22459_2.png) [@markus](https://devforum.zoom.us/u/markus)\
**Post date:** [February 4, 2021, 2:54am UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/4 "2021-02-04T02:54:22Z")

</div>

@tommy, yes, actually I copied this from the Webhook APP log. Basically, on my endpoint URL, I added PHP code to subscribe to this response but as this is invalid my PHP code is not subscribing to it so I need to take the log from app itself.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 4, 2021, 8:47pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/5 "2021-02-04T20:47:41Z")

</div>

Hey @markus,

Thank you for providing additional information. I should note that what is found in the Webhook-Only Call Logs is not expected to match the response sent by the event subscription itself. It’s not a reliable location to copy from directly for use in your code.

You mentioned that you weren’t able to subscribe to this webhook because you get an invalid response from the event subscription, is that correct? Are you seeing this same response when you get an event subscription or is it different?

I ask because the [recording.completed](https://marketplace.zoom.us/docs/api-reference/webhook-reference/recording-events/recording-completed) event should provide the following format of JSON when it occurs:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/8/187f8fc89c020420ad14862405255504a0feb375.png)

Notably, this doesn’t include the metadata tags that you and @tommy referenced. Are you seeing a different response when you’re subscribed to this event?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![markus](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markus/32/22459_2.png) [@markus](https://devforum.zoom.us/u/markus)\
**Post date:** [February 5, 2021, 4:58pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/6 "2021-02-05T16:58:12Z")

</div>

Hi Max,

Actually the URL I added as an endpoint is listening to the events and I have added an email to notify whenever there is an even in the zoom, but due to some server issue it is not sending email to me, that’s why I copied the data from webhook log and testing with that, lemme add some other endpoint and then I will add an email function to see what data I am receiving in webhook response, then I will get back to you.

Thanks

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 5, 2021, 11:06pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/7 "2021-02-05T23:06:14Z")

</div>

Hey @markus,

Thank you for the update. As always, let me know if you encounter any further issues or questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![markus](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markus/32/22459_2.png) [@markus](https://devforum.zoom.us/u/markus)\
**Post date:** [February 6, 2021, 9:50am UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/8 "2021-02-06T09:50:46Z")

</div>

Hi @MaxM,

Is there a way where I can send a test webhook to my endpoint that will have data from any of our old recordings, so there will be no need to wait for the actual webhook as we have the next scheduled webinar after 2-3 days from now?

Thanks

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 8, 2021, 9:18pm UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/9 "2021-02-08T21:18:01Z")

</div>

Hey @markus,

Thank you for your question. You can copy one of the older events that you’ve received or trigger an event for a test meeting and reuse that data. Once you have a copy, you can POST that to your endpoint.

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<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 11, 2021, 7:18am UTC](https://devforum.zoom.us/t/webhook-response-is-invalid/42325/10 "2021-03-11T07:18:12Z")

</div>

Closed on March 11, 2021, 7:18am UTC

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