# Unable to fetch recording from cloud by using PMI

**URL:** <https://devforum.zoom.us/t/unable-to-fetch-recording-from-cloud-by-using-pmi/61142>\
**Category:** API and Webhooks\
**Created:** [December 7, 2021, 4:37am UTC](https://devforum.zoom.us/t/unable-to-fetch-recording-from-cloud-by-using-pmi/61142 "2021-12-07T04:37:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreyasv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shreyasv/32/32940_2.png) [@shreyasv](https://devforum.zoom.us/u/shreyasv)\
**Post date:** [December 7, 2021, 4:37am UTC](https://devforum.zoom.us/t/unable-to-fetch-recording-from-cloud-by-using-pmi/61142/1 "2021-12-07T04:37:45Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
I am trying to fetch recording from cloud for meeting created by Personal meeting id.  
While creating meeting i have got id in response, which i have used for fetching recording using “meetings/{meetingId}/recordings” api. Everything working fine if i set “use\_pmi” value false while creating meeting. But if I set “use\_pmi” true while creating meeting, everything working fine except I am getting error while fetching recording

**Error**  
Client error: `GET https://api.zoom.us/v2/meetings/81795987446/recordings` resulted in a `404 Not Found` response:\n  
{“code”:3301,“message”:“This recording does not exist.”}

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

**Which Endpoint/s?**  
Get meeting recordings

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

1. Create 2 meetings with use\_pmi : true in setting
2. You will get response which contain one of the parameter, id
3. If you use that id for fetching meeting details, you will get details.
4. But if you use that id for fetching meeting recording, you will get error which i have metioned above.

**Additional context**  
I am creating meeting with following request

$path = ‘users/me/meetings’;  
$url = $this-\>retrieveZoomUrl();

$body = [

```
 'headers' => [

    'Authorization' => 'Bearer ' . $this->jwt,

    'Content-Type' => 'application/json',

    'Accept' => 'application/json',

 ],

 'body' => json_encode([

    'topic' => $this->topic,

    'type' => $this->type,

    'start_time' => $this->start_time,

    'duration' => $this->duration,

    'agenda' => $this->agenda,

    'timezone' => $this->timezone,

    'settings' => [

       'use_pmi' => true,

       'host_video' => $this->host_video,

       'participant_video' => $this->participant_video,

       'waiting_room' => $this->waiting_room,

       'auto_recording' => 'cloud',

    ],

 ]),

```

];

---

<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:** [December 7, 2021, 11:46pm UTC](https://devforum.zoom.us/t/unable-to-fetch-recording-from-cloud-by-using-pmi/61142/2 "2021-12-07T23:46:29Z")

</div>

Hi @shreyasv

Thank you for reaching out to the Zoom Developer Forum, I am happy to help here!  
I see that you are getting an error when trying to get the recording of a meeting that was created with your PMI.

Could you please try sending the PMI in your url request instead of the meeting ID  
This should fix your error  
Thanks  
Elisa

---

<div class="post-metadata">

**Author:** ![shreyasv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shreyasv/32/32940_2.png) [@shreyasv](https://devforum.zoom.us/u/shreyasv)\
**Post date:** [December 8, 2021, 9:07am UTC](https://devforum.zoom.us/t/unable-to-fetch-recording-from-cloud-by-using-pmi/61142/3 "2021-12-08T09:07:13Z")

</div>

I done that already.  
But the problem is, i am getting latest meeting recording only.  
The script is running in background which check meeting is completed and then get that meeting id and fetch the recording in loop.

If i used PMI and if two meetings were completed, then i am able to fetch latest meeting recording only.

---

<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:** [December 8, 2021, 9:30pm UTC](https://devforum.zoom.us/t/unable-to-fetch-recording-from-cloud-by-using-pmi/61142/4 "2021-12-08T21:30:32Z")

</div>

Hi @shreyasv

I see… that behavior that you are experiencing is in fact the expected behavior:

![Screen Shot 2021-12-08 at 4.28.08 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/2/02bacfa4e6359f7120321c7614c16b5900860da1.png)

You will need to pass the meeting uuid instead.  
For that, you will need to call the endpoint  
[List ended meeting instances](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/pastmeetings) passing the PMI in your path parameters and once you get the different uuids for the different instances of your PMI, then you will be able to query with the uuids

Hope this helps,  
Elisa

---

<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:** [January 8, 2022, 7:30am UTC](https://devforum.zoom.us/t/unable-to-fetch-recording-from-cloud-by-using-pmi/61142/5 "2022-01-08T07:30:54Z")

</div>

Closed on January 8, 2022, 7:30am UTC

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