# Playground V2 doesn't work

**URL:** <https://devforum.zoom.us/t/playground-v2-doesnt-work/1797>\
**Category:** API and Webhooks\
**Created:** [October 8, 2018, 12:32pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797 "2018-10-08T12:32:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Temchenko](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@Sergey\_Temchenko](https://devforum.zoom.us/u/Sergey_Temchenko)\
**Post date:** [October 8, 2018, 12:32pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/1 "2018-10-08T12:32:26Z")

</div>

Hello, i want to migrate my app from API v1 to v2. To test new API i went to Playground, but when i use some Account API i get errors. 1)Accounts list. I’ve put access token and executed query([https://api.zoom.us/v2/accounts?page\_size=30&page\_number=1&access\_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh\_FrH–AagrQLGoF5ZxB1OFN7mA](https://api.zoom.us/v2/accounts?page_size=30&page_number=1&access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh_FrH--AagrQLGoF5ZxB1OFN7mA)) It generates next curl: curl -X GET “[https://api.zoom.us/v2/accounts?page\_size=30&page\_number=1&access\_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh\_FrH–AagrQLGoF5ZxB1OFN7mA](https://api.zoom.us/v2/accounts?page_size=30&page_number=1&access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh_FrH--AagrQLGoF5ZxB1OFN7mA)” -H “accept: application/json” On response i get 401. Invalid auth token. 2)Accounts create sub. I’ve executed query [https://api.zoom.us/v2/accounts?access\_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh\_FrH–AagrQLGoF5ZxB1OFN7mA](https://api.zoom.us/v2/accounts?access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh_FrH--AagrQLGoF5ZxB1OFN7mA) Curl: curl -X POST “[https://api.zoom.us/v2/accounts?access\_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh\_FrH–AagrQLGoF5ZxB1OFN7mA](https://api.zoom.us/v2/accounts?access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDAwNDY4LCJleHAiOjE1MzkwMTg0Njh9.X8dizWmA76sIUzUAh_FrH--AagrQLGoF5ZxB1OFN7mA)” -H “accept: application/json” -H “Content-Type: application/json” -d “{ “first\_name”: “string”, “last\_name”: “string”, “email”: “string”, “password”: “string”, “options”: { “share\_rc”: false, “room\_connectors”: “string”, “share\_mc”: false, “meeting\_connectors”: “string”, “pay\_mode”: “master” }}” But now, instead of POST it sends OPTION request and gets 403 Forbidden.

Is it Playground broken or my mistake?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [October 8, 2018, 6:39pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/2 "2018-10-08T18:39:50Z")

</div>

Hi Sergey,&nbsp;

Playground is still working, did you authorize the token before running the first API call? For the second one, please take a look at your payload, make sure to replace “string” with actual data.&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Sergey\_Temchenko](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@Sergey\_Temchenko](https://devforum.zoom.us/u/Sergey_Temchenko)\
**Post date:** [October 9, 2018, 6:55am UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/3 "2018-10-09T06:55:27Z")

</div>

Hi. Of course i did. Token is authorized. Payload was attached as sample, it doesn’t matter what JSON it posts because it should have posted POST request but i had OPTION.

By the way i get next error in console

```
GET https://api.zoom.us/v2/accounts?page\_size=30&page\_number=1&access\_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDY3NzQ3LCJleHAiOjE1MzkwODU3NDd9.WHtJViJBZAk4mliq6fxnK1kUYffq9s2lZd9tQtwXGhU 401 (Unauthorized)

```

and

```
Failed to load https://api.zoom.us/v2/accounts?page\_size=30&page\_number=1&access\_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaGs1SDZObVRSaS12TnR2bDRRcjF3IiwiaWF0IjoxNTM5MDY3NzQ3LCJleHAiOjE1MzkwODU3NDd9.WHtJViJBZAk4mliq6fxnK1kUYffq9s2lZd9tQtwXGhU: 
No 'Access-Control-Allow-Origin' header is present on the requested resource. 
Origin 'https://developer.zoom.us' is therefore not allowed access. The response had HTTP status code 401. 
If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

```

That’s why it does OPTION first.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [October 10, 2018, 4:21pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/4 "2018-10-10T16:21:50Z")

</div>

Hi Sergey,&nbsp;

The reason why the you’re getting a “invalid access token” is because your account is not the master account. Only master accounts with sub accounts are allowed to see the subaccounts.&nbsp;

---

<div class="post-metadata">

**Author:** ![Together\_Networks](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@Together\_Networks](https://devforum.zoom.us/u/Together_Networks)\
**Post date:** [October 11, 2018, 12:12pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/5 "2018-10-11T12:12:57Z")

</div>

Sadly, but no. My current user has Admin role and he is sub account of our master account. I took our master account credentials, logged in and tested with it. API returns same errors. Still invalid auth token, still CORS issues in console.

I’ve written to support and they should have added new ticket for this behavior.

If you have some different workaround, please tell me.

Thank you!

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [October 11, 2018, 5:36pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/6 "2018-10-11T17:36:07Z")

</div>

Hi Together Networks,&nbsp;

Can you send us the account ID associated to the master account so that we can take a look at [developersupport@zoom.us](mailto:developersupport@zoom.us)?

Thanks

---

<div class="post-metadata">

**Author:** ![Sergey\_Temchenko](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@Sergey\_Temchenko](https://devforum.zoom.us/u/Sergey_Temchenko)\
**Post date:** [October 12, 2018, 10:23am UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/7 "2018-10-12T10:23:40Z")

</div>

I’ve sent email to [developersupport@zoom.us](mailto:developersupport@zoom.us). The only thing, im not sure that i put correct ID. If not, please show me where i should take it.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [October 12, 2018, 7:22pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/8 "2018-10-12T19:22:35Z")

</div>

Hi Sergey,&nbsp;

We got your email and will have our API Engineers take a look at your account to see whats going on with the error.&nbsp;

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [October 15, 2018, 4:13pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/9 "2018-10-15T16:13:08Z")

</div>

Hi Sergey,&nbsp;

Following up on the v2/accounts API you’re trying to access. To check to see if you have a master account you can check [Zoom.us](http://Zoom.us) portal page and see if you have this tab for sub accounts. If you don’t see if then you will need to make a request with our sales/support team to have a master account.

![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/fda98c9bfea948d60f2e27ded40bccfe217140e8.png)

---

<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, 5:56pm UTC](https://devforum.zoom.us/t/playground-v2-doesnt-work/1797/10 "2020-08-21T17:56:23Z")

</div>

Closed on August 21, 2020, 5:56pm UTC


