# Use the owner's userId to create meeting

**URL:** <https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498>\
**Category:** API and Webhooks\
**Created:** [December 2, 2020, 10:48pm UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498 "2020-12-02T22:48:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![momodev19](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@momodev19](https://devforum.zoom.us/u/momodev19)\
**Post date:** [December 2, 2020, 10:48pm UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498/1 "2020-12-02T22:48:35Z")

</div>

**Description**  
I’m trying to create a meeting but having a problem with {userId}, I tried me/email/accountId but it returns 200 without any content.

I have read that to get userId i should request it on /users api but the scope of my oauth is limited to creating meetings only.

I am not sure if the problem is the userId or my request. If someone can clarify and point me to the right direction, it will be a big help. Thanks!

This is the body of my request:  
“topic” =\> “test-raymond”  
“type” =\> 2  
“start\_time” =\> “2020-12-03T00:00:00Z”  
“duration” =\> 60  
“timezone” =\> “America/Los\_Angeles”  
“password” =\> “dzWgcJyo”  
“settings” =\> [▼  
“host\_video” =\> false  
“participant\_video” =\> false  
“cn\_meeting” =\> false  
“in\_meeting” =\> false  
“join\_before\_host” =\> false  
“mute\_upon\_entry” =\> false  
“watermark” =\> false  
“use\_pmi” =\> false  
“approval\_type” =\> 1  
“registration\_type” =\> 2  
“audio” =\> “both”  
“auto\_recording” =\> “none”  
“registrants\_email\_notification” =\> true  
]

**Error**  
Error code 200 without contents

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

**Which Endpoint/s?**  
[https://api.zoom.us/v2/meetings/users/{userId}/meetings](https://api.zoom.us/v2/meetings/users/%7BuserId%7D/meetings)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [December 3, 2020, 6:06pm UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498/2 "2020-12-03T18:06:38Z")

</div>

Hey @momodev19,

Can you confirm that the meeting wasn’t successfully created by verifying in your upcoming meetings in the Zoom UI? A 200 response is a success message, so I’d like to rule out that the meeting wasn’t actually created 🙂

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![momodev19](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@momodev19](https://devforum.zoom.us/u/momodev19)\
**Post date:** [December 3, 2020, 7:38pm UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498/3 "2020-12-03T19:38:26Z")

</div>

Hi @will.zoom,

The meeting was not created. I’m confused why it returns a 200 when the documentation doesn’t have a 200 response.

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:** [December 4, 2020, 8:08pm UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498/4 "2020-12-04T20:08:53Z")

</div>

Hey @momodev19,

It looks like the endpoint that you are using is incorrect. When creating a meeting for a user, the endpoint should start with /user instead of /meetings. You can see this outlined in the [API documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate).

Please try using the endpoint: [https://api.zoom.us/v2/users/{userId}/meetings](https://api.zoom.us/v2/users/%7BuserId%7D/meetings)

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![momodev19](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@momodev19](https://devforum.zoom.us/u/momodev19)\
**Post date:** [December 4, 2020, 8:46pm UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498/5 "2020-12-04T20:46:39Z")

</div>

Hi @MaxM,

Thank you for pointing that out. I completely missed it. I can now create a meeting via API.

---

<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:** [December 4, 2020, 11:04pm UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498/6 "2020-12-04T23:04:07Z")

</div>

Hey @momodev19,

I’m glad to hear that resolved your issue! Please don’t hesitate to reach out to us if you encounter any further issues or 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:** [January 4, 2021, 9:04am UTC](https://devforum.zoom.us/t/use-the-owners-userid-to-create-meeting/37498/7 "2021-01-04T09:04:18Z")

</div>

Closed on January 4, 2021, 9:04am UTC

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