# How to handle \`recording.completed\` webhook events with PMI and multiple meeting instance uuids

**URL:** <https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525>\
**Category:** API and Webhooks\
**Created:** [November 6, 2019, 12:42am UTC](https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525 "2019-11-06T00:42:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfarmer.2u](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tfarmer.2u/32/2873_2.png) [@tfarmer.2u](https://devforum.zoom.us/u/tfarmer.2u)\
**Post date:** [November 6, 2019, 12:42am UTC](https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525/1 "2019-11-06T00:42:18Z")

</div>

**Description/Error**  
I’m looking for the best way for us to handle the `recording.completed` webhook events and find the matching meeting it belongs to in our database. We need to support multiple meeting instances (when a host begins and ends the meeting a couple times), and potentially also meetings using a PMI.

**Which Endpoint/s?**  
Get Meeting, Get Past Meeting Details/Instances, and the `recording.completed` webhook

**How To Reproduce (If applicable)**

1. Enable “Use Personal Meeting ID (PMI) when scheduling a meeting” on your account or sub-account, and users.
2. Subscribe to the `recording.completed` webhook events.
3. Create a meeting via the API and it responds with the new meeting info. Let’s say the `id` is `165655697` and the `uuid` is `og9FrYRvSiGrqan27JLVkg==` .
4. As a meeting host, join and end the meeting a few times, and creating recordings each time.
5. Receive the `recording.completed` webhook events that was subscribed to and attempt to match it with a meeting in our database.

Notice it uses meeting PID values when describing the recordings’ meeting, and have no way of knowing it is actually meeting id `165655697`. Seems that we then need to get a list of all `uuids` associated to this meeting using the past meetings API, but would this be possible using the PMI, or perhaps some other method using the meeting uuid?

---

<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:** [November 7, 2019, 6:37am UTC](https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525/2 "2019-11-07T06:37:27Z")

</div>

Hey @tfarmer.2u,

To accomplish this, have you tried matching the meeting `id` from the [Meeting Ended Webhook payload](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-ending) with the `meeting_id` (actually the meetindUUID) from the [Recording Comepleted Webhook payload](https://marketplace.zoom.us/docs/api-reference/webhook-reference/recording-events/recording-completed)?

The meeting `id` and recordings `meeting_id` should match and allow you to match the meeting with the recording in your database.

Let me know if this works! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tfarmer.2u](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tfarmer.2u/32/2873_2.png) [@tfarmer.2u](https://devforum.zoom.us/u/tfarmer.2u)\
**Post date:** [November 11, 2019, 10:54pm UTC](https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525/3 "2019-11-11T22:54:55Z")

</div>

Ah, thanks for the tip! We have had no need up until now to subscribe to the [Meeting Ended Webhook payload](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-ending). As you pointed out, doing so will allow us to keep track of the actual meeting instance uuids that have occurred and therefore accurately match the recordings to these meeting instances.

However, I have another question then. How can we associate these meeting instances to our original scheduled meeting when using PMI’s?

When Personal Meting Id’s are being used, is the `meeting_id` value in the [Meeting Ended Webhook payload](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-ending) the same as the `meeting_id` value provided in the [Create A Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) response? If not (due to PMI’s overriding it) when I still have no way of associating the meeting instance uuids to the original scheduled meeting in our database.

We would like to allow our users to use PMI’s but are having difficulties doing so due to this complexity.

Thanks again for your assistance.

---

<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:** [November 12, 2019, 1:26am UTC](https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525/4 "2019-11-12T01:26:16Z")

</div>

Hey @tfarmer.2u, happy to help!

> [@tfarmer.2u](#):
>
> However, I have another question then. How can we associate these meeting instances to our original scheduled meeting when using PMI’s?

I have tried to accomplish this, but I ran into the same issue as you did. I am not sure if this is a bug, or maybe due to a PMI setting that can be easily changed to get the scheduled and ended meeting to associate. I have forwarded these details, and details of my own investigation to our team and we are looking into why this is happening. JIRA: ZOOM-120115

I will post here with updates once I hear back!

Thanks for your patience,  
Tommy

---

<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:** [November 15, 2019, 11:20pm UTC](https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525/5 "2019-11-15T23:20:00Z")

</div>

Hey @tfarmer.2u,

Unfortunately as of now there is no way to associate the scheduled PMI meeting and PMI meeting after it happens. To get around this, I would suggest to not use the PMI for scheduled meetings, and instead use a generated meeting ID.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:02pm UTC](https://devforum.zoom.us/t/how-to-handle-recording-completed-webhook-events-with-pmi-and-multiple-meeting-instance-uuids/6525/6 "2020-08-21T19:02:45Z")

</div>

Closed on August 21, 2020, 7:02pm UTC


