# Unable to create zoom meeting from API even though I have scope

**URL:** <https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617>\
**Category:** API and Webhooks\
**Created:** [March 25, 2020, 4:45pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617 "2020-03-25T16:45:29Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhammad.faizan.cs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/muhammad.faizan.cs/32/4144_2.png) [@muhammad.faizan.cs](https://devforum.zoom.us/u/muhammad.faizan.cs)\
**Post date:** [March 25, 2020, 4:45pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/1 "2020-03-25T16:45:30Z")

</div>

**Description**  
I authorized user with these scopes:  
scope: ‘meeting:read meeting:write user:read user:write user\_profile webinar:write’

However when I use this token to create meeting request. I get this in response:  
{  
“code”: 4700,  
“message”: “Invalid access token, does not contain scopes: [zms:meeting:write, meeting:write:admin]”  
}

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

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

**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:

1. **Request URL**  
[https://api.zoom.us/v2/users/cL4rPKFPTF6dHZMWQRHOMA/meetings](https://api.zoom.us/v2/users/cL4rPKFPTF6dHZMWQRHOMA/meetings)

**Headers**  
{  
Authorization : “Bearer …”,  
“Content-Type”: “application/json”  
}  
**Body**

> {  
> “topic”: “Corona testing”,  
> “duration”: 60,  
> “settings”: {  
> “mute\_upon\_entry”: true,  
> “join\_before\_host”: true  
> },  
> “password”: “test-123”  
> }

1. See error  
`{"code":4700,"message":"Invalid access token, does not contain scopes: [zms:meeting:write, meeting:write:admin]"}`

**Additional context**  
This is the curl

```
curl --location --request POST 'https://api.zoom.us/v2/users/cL4rPKFPTF6dHZMWQRHOMA/meetings' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiIsInYiOiIyLjAiLCJraWQiOiI5Mjk5NzU3Ni1mMjE0LTRhMjItOWQ2Yi1mZjcwYmU4YjMzZjEifQ.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiJ4WnB2SHROSlNIeUFLYW1GeGp3IiwiY29kZSI6IkxFcVZCSkpYNG9fY0w0clBLRlBURjZkSFpNV1FSSE9NQSIsImlzcyI6InVybjp6b29tOmNvbm5lY3Q6Y2xpZW50aWQ6eFpwdkh0TkpTSHlBS2FtRnhqdyIsImF1dGhlbnRpY2F0aW9uSWQiOiIwOGE4MGQ0MDk1NWZmYWQzMmQ5Mzk2MDhhNjI2ZmE5ZSIsInVzZXJJZCI6ImNMNHJQS0ZQVEY2ZEhaTVdRUkhPTUEiLCJncm91cE51bWJlciI6MCwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwiYWNjb3VudElkIjoiSHNWVWlxbldSdE9XenRvYlNUekdqdyIsIm5iZiI6MTU4NTE1MzgzMywiZXhwIjoxNTg1MTU3NDMzLCJ0b2tlblR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJpYXQiOjE1ODUxNTM4MzMsImp0aSI6IjZiNGI0MDhiLTBjOGQtNGZlMS1hYzA2LWZlZGYzNWFhZDM0MyIsInRvbGVyYW5jZUlkIjozfQ.dZrEa2f7bMUc97xR2eHCy7OfVbpl9rYq89LvdTLcZsGlIyKTuG7_vAsmAUOgKQ0qN67Y_PoGgoSCH8JB-5XJWA' \
--header 'Content-Type: application/json' \
--header 'Cookie: _zm_page_auth=aw1_c_-E8nX9f9SSam5oeHPBRkdQ; _zm_ssid=aw1_c_IX5EP4P3Ttioirw8vEnh3g; _zm_ctaid=fQiy5sPXS_CfYwFZIJd-JA.1585150301073.868395c6d97c80c2c4de4a874a049520; _zm_chtaid=653; _zm_currency=USD; _zm_mtk_guid=7311d4558c6d4eaab96318b3330ed72c; cred=0C89224EB23F429A205D64166F841FDA' \
--data-raw '{
   "topic": "Corona testing",
   "duration": 60,
   "settings": {
      "mute_upon_entry": true,
      "join_before_host": true
   },
   "password": "test-123"
}'

```

---

<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:** [March 25, 2020, 4:50pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/2 "2020-03-25T16:50:06Z")

</div>

Hey @muhammad.faizan.cs, thanks for posting and using Zoom!

Please try replacing the userID in your request with `me`.

For [example](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#me-context):

**Request URL**  
`https://api.zoom.us/v2/users/me/meetings`

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ncsquared](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ncsquared/32/4150_2.png) [@ncsquared](https://devforum.zoom.us/u/ncsquared)\
**Post date:** [March 25, 2020, 5:25pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/3 "2020-03-25T17:25:34Z")

</div>

@tommy, thanks for this. I’ve seen the response to switch from {userId} to me several times today in the forum. Is there a place in the docs that explains when to use me vs {userId}?

---

<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:** [March 25, 2020, 9:01pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/4 "2020-03-25T21:01:21Z")

</div>

Hey @ncsquared, thanks for posting and using Zoom!

We need to do a better job of explaining this on our docs. Here is the current page that explains this:

[https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#me-context](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#me-context)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ncsquared](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ncsquared/32/4150_2.png) [@ncsquared](https://devforum.zoom.us/u/ncsquared)\
**Post date:** [March 26, 2020, 10:20am UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/5 "2020-03-26T10:20:22Z")

</div>

@tommy, FWIW, the APIs dont seem to work for OAuth in any other way but the me context.

If I am not mistaken, all the embedded postman tests in the docs fail for OAuth apps because of this. Attaching one such example, where you can see that the URL for the POST is hardcoded, and an OAuth access token won’t allow for the call to work. At least, I haven’t managed to make it happen, so maybe I’m missing something else.

 ![Screen Shot 2020-03-26 at 12.17.59](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/9b6594b2a8c5bb8a43451e69e10dde26ea5787cf.png)

---

<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:** [March 26, 2020, 8:50pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/6 "2020-03-26T20:50:52Z")

</div>

Hey @ncsquared,

For User Level OAuth apps you will need to use the [me context](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#me-context).

For Account Level OAuth apps you can use the user ids.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.faizan.cs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/muhammad.faizan.cs/32/4144_2.png) [@muhammad.faizan.cs](https://devforum.zoom.us/u/muhammad.faizan.cs)\
**Post date:** [March 30, 2020, 6:07pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/7 "2020-03-30T18:07:14Z")

</div>

now how do I patch the meeting? I want to be able to update it.

---

<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:** [March 30, 2020, 11:49pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/8 "2020-03-30T23:49:58Z")

</div>

Hey @muhammad.faizan.cs,

You can update a meeting via the [Update Meeting endpoint.](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.faizan.cs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/muhammad.faizan.cs/32/4144_2.png) [@muhammad.faizan.cs](https://devforum.zoom.us/u/muhammad.faizan.cs)\
**Post date:** [March 31, 2020, 5:18am UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/9 "2020-03-31T05:18:33Z")

</div>

Update meeting is not supported under user level managed app

---

<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:** [March 31, 2020, 6:42am UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/10 "2020-03-31T06:42:46Z")

</div>

Hey @muhammad.faizan.cs,

It should work with a User Level OAuth app.

Are you seeing errors when making the update request?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.faizan.cs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/muhammad.faizan.cs/32/4144_2.png) [@muhammad.faizan.cs](https://devforum.zoom.us/u/muhammad.faizan.cs)\
**Post date:** [March 31, 2020, 7:02am UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/11 "2020-03-31T07:02:51Z")

</div>

Yes, its throwing this error, with 401 HTTP Code

```
 { code: 124, error: 'invalid access token' }
```

---

<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:** [March 31, 2020, 5:07pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/12 "2020-03-31T17:07:25Z")

</div>

Hey @muhammad.faizan.cs,

Are you passing in an active access\_token? Please share your request details so I can help debug.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.faizan.cs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/muhammad.faizan.cs/32/4144_2.png) [@muhammad.faizan.cs](https://devforum.zoom.us/u/muhammad.faizan.cs)\
**Post date:** [April 1, 2020, 12:26pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/13 "2020-04-01T12:26:12Z")

</div>

Yes I am, I think its out of scope, because in the [ME](https://marketplace.zoom.us/docs/guides/auth/oauth#me-context) api its only allowed to make `POST` and `GET` call for meeting. so Patch is not included. correct me if I am wrong

---

<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:** [April 1, 2020, 8:57pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/14 "2020-04-01T20:57:21Z")

</div>

Hey @muhammad.faizan.cs,

Just tested and it worked. I don’t think you are using the [correct endpoint URL.](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate)

PATCH `https://api.zoom.us/v2/meetings/{meetingId}`

There is no me context or userID passed in ^ only meetingID.

Please share your request URL.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.faizan.cs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/muhammad.faizan.cs/32/4144_2.png) [@muhammad.faizan.cs](https://devforum.zoom.us/u/muhammad.faizan.cs)\
**Post date:** [April 1, 2020, 9:57pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/15 "2020-04-01T21:57:48Z")

</div>

I was using ‘/me’ ☹ its so confusing

---

<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:** [April 2, 2020, 7:56am UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/16 "2020-04-02T07:56:11Z")

</div>

Hey @muhammad.faizan.cs,

Yes for the [PATCH Meeting endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate), use the meetingID so it knows which meeting to update. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![muhammad.faizan.cs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/muhammad.faizan.cs/32/4144_2.png) [@muhammad.faizan.cs](https://devforum.zoom.us/u/muhammad.faizan.cs)\
**Post date:** [July 17, 2020, 9:31am UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/17 "2020-07-17T09:31:54Z")

</div>

The `me context` API has been moved I am unable to find its documentation or even your URL.  
Is there a way I can find it.

---

<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:** [July 21, 2020, 10:40pm UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/18 "2020-07-21T22:40:41Z")

</div>

Hey @muhammad.faizan.cs,

You can see the `me` context docs here:

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth#me-context)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To setup access credentials and request scopes for yo...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![xiaopengchen](https://avatars.discourse-cdn.com/v4/letter/x/85e7bf/32.png) [@xiaopengchen](https://devforum.zoom.us/u/xiaopengchen)\
**Post date:** [November 22, 2023, 3:21am UTC](https://devforum.zoom.us/t/unable-to-create-zoom-meeting-from-api-even-though-i-have-scope/9617/19 "2023-11-22T03:21:30Z")

</div>

Hello!Has this problem been fixed? I also encountered the same problem
