# How to organize and store real time Webhooks data to one file?

**URL:** <https://devforum.zoom.us/t/how-to-organize-and-store-real-time-webhooks-data-to-one-file/43695>\
**Category:** API and Webhooks\
**Created:** [February 18, 2021, 5:04pm UTC](https://devforum.zoom.us/t/how-to-organize-and-store-real-time-webhooks-data-to-one-file/43695 "2021-02-18T17:04:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmeng](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zmeng/32/23282_2.png) [@zmeng](https://devforum.zoom.us/u/zmeng)\
**Post date:** [February 18, 2021, 5:04pm UTC](https://devforum.zoom.us/t/how-to-organize-and-store-real-time-webhooks-data-to-one-file/43695/1 "2021-02-18T17:04:32Z")

</div>

**Description**  
Hi, I am able to subscribe events and receive real time user status changes in my localhost, but I am wondering if there is a way to pull out all of these real time messages and store them in a JSON file for further analysis. Also, I keep getting 405 error… Thanks!

**Error**  
The full error message or issue you are running into.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Webhook

**Which Endpoint/s?**  
I used ngrok to create self-generated URL to receive information.

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

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**

 ![Screen Shot 2021-02-18 at 9.01.38 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/e/be38a106b4cd8d46f13de9d7f1f22745a7d4b52c.png)

**Additional context**  
Add any other context about the problem here.

---

<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 18, 2021, 10:59pm UTC](https://devforum.zoom.us/t/how-to-organize-and-store-real-time-webhooks-data-to-one-file/43695/2 "2021-02-18T22:59:37Z")

</div>

Hey @zmeng,

Thank you for reaching out to the Zoom Developer Forum. If you want to save the message in a JSON file, you’ll want to write and host an endpoint that has the logic to retain the event subscriptions and write them to a file. Ngrok by default doesn’t have this functionality.

> [@zmeng](#):
>
> Also, I keep getting 405 error… Thanks!

I was able to find a stackoverflow post that goes over this behavior, let me know if the following link is helpful:

> <https://stackoverflow.com/questions/48489282/ngrok-returns-405-error-while-tunneling-my-localhost>

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

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![zmeng](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zmeng/32/23282_2.png) [@zmeng](https://devforum.zoom.us/u/zmeng)\
**Post date:** [February 18, 2021, 11:45pm UTC](https://devforum.zoom.us/t/how-to-organize-and-store-real-time-webhooks-data-to-one-file/43695/3 "2021-02-18T23:45:19Z")

</div>

Hi Max,

Thanks for the reply. Do you have recommendations which endpoint could help to write and retain the subscriptions?

---

<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 19, 2021, 10:11pm UTC](https://devforum.zoom.us/t/how-to-organize-and-store-real-time-webhooks-data-to-one-file/43695/4 "2021-02-19T22:11:07Z")

</div>

Hey @zmeng,

Thank you for your question. There are a couple of options to accomplish this. The easiest is to use a service called [Request Bin](https://requestbin.com/). I was able to find a [3rd party article](https://medium.com/@dylan.sather/processing-webhooks-with-node-js-and-pipedream-63fe205cb0f8) that outlines how you can use NodeJS code to save your events.

Alternatively, you can write a server that you host which will act as the event subscription endpoint. From there, you can add custom logic to write the JSON to a file. This could be done in a variety of languages such as NodeJS, Java, Go, PHP, etc.

Let me know if that helps.

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 22, 2021, 8:11am UTC](https://devforum.zoom.us/t/how-to-organize-and-store-real-time-webhooks-data-to-one-file/43695/5 "2021-03-22T08:11:53Z")

</div>

Closed on March 22, 2021, 8:11am UTC

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