# Release of Zoom API Version 2 and Zoom Rooms API

**URL:** <https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771>\
**Category:** API and Webhooks\
**Created:** [November 6, 2017, 8:45pm UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771 "2017-11-06T20:45:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [November 6, 2017, 8:45pm UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/1 "2017-11-06T20:45:48Z")

</div>

On November 4th 2017 Zoom API Version 2 and Zoom Room APIs went live.

By default, Version 2 documentation will be presented, with links to Version 1. For reference here are the links for V1 and V2 Documentation and Playground:

Documentation  
Version 2: [https://zoom.github.io/api/](https://zoom.github.io/api/)  
Version 1: [https://zoom.github.io/api-v1/](https://zoom.github.io/api-v1/)

Playground  
Version 2: [https://developer.zoom.us/playground/](https://developer.zoom.us/playground/)  
Version 1: [https://developer.zoom.us/playground-v1/](https://developer.zoom.us/playground-v1/)

&nbsp;

Also now available is documentation on the Zoom Rooms API

Zoom Rooms API  
[https://developer.zoom.us/docs/zoom-rooms-api/](https://developer.zoom.us/docs/zoom-rooms-api/)

---

<div class="post-metadata">

**Author:** ![Priyank\_Kotiyal1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Priyank\_Kotiyal1](https://devforum.zoom.us/u/Priyank_Kotiyal1)\
**Post date:** [November 7, 2017, 11:47am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/2 "2017-11-07T11:47:30Z")

</div>

Hi Joshua,&nbsp;

&nbsp; &nbsp; The authentication is not working for me for v2. I am using JWT for authentication. I am getting unauthorized error.

Please see attached screen shot.

 ![](https://support.zoom.us/hc/user_images/rOipOiUeD6JWNDd9V6if_Q.png)

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [November 7, 2017, 6:19pm UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/3 "2017-11-07T18:19:55Z")

</div>

It’s

Bearer \<access\_token\>

Not

Bearer access\_token = \<access\_token\>

---

<div class="post-metadata">

**Author:** ![Priyank\_Kotiyal1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Priyank\_Kotiyal1](https://devforum.zoom.us/u/Priyank_Kotiyal1)\
**Post date:** [November 8, 2017, 5:43am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/4 "2017-11-08T05:43:55Z")

</div>

Hi Joshua,

&nbsp; &nbsp; Thanks, If I use token generated on zoom api playground then it works fine. But now problem is that the token I am generating doesn’t get validated, reason may be token generated is wrong. I am using library&nbsp;[System.IdentityModel.Tokens.Jwt](https://www.nuget.org/packages/System.IdentityModel.Tokens.Jwt/)&nbsp;for C# .Net which referred from [https://jwt.io/](https://jwt.io/).

Following is my piece of code of generating JWT -:

var encryptionKey = Convert.FromBase64String(apiSecret);  
var securityTokenDescriptor = new SecurityTokenDescriptor  
{  
&nbsp; &nbsp; &nbsp;Issuer = apiKey,  
&nbsp; &nbsp; &nbsp;Expires = DateTime.UtcNow.AddMinutes(Convert.ToInt32(20)),  
&nbsp; &nbsp; &nbsp;SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(encryptionKey),&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SecurityAlgorithms.HmacSha256Signature)  
};  
var tokenHandler = new JwtSecurityTokenHandler();  
var securityToken = tokenHandler.CreateToken(securityTokenDescriptor);  
var jsonWebToken = tokenHandler.WriteToken(securityToken);

Am I doing something wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![Priyank\_Kotiyal1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Priyank\_Kotiyal1](https://devforum.zoom.us/u/Priyank_Kotiyal1)\
**Post date:** [November 8, 2017, 6:25am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/5 "2017-11-08T06:25:38Z")

</div>

Hi, I solved the question I asked above by changing encryption key. Don’t use&nbsp;Convert.FromBase64String for getting bytes.

var encryptionKey = Encoding.UTF8.GetBytes(apiSecret);

Thanks!

---

<div class="post-metadata">

**Author:** ![Priyank\_Kotiyal1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Priyank\_Kotiyal1](https://devforum.zoom.us/u/Priyank_Kotiyal1)\
**Post date:** [November 8, 2017, 6:59am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/6 "2017-11-08T06:59:02Z")

</div>

Hi Joshua,

&nbsp; &nbsp;For authentication process v2, user needs to provide JWT from his developer account or we need to compute it manually. Now I know how compute JWT but where can I locate JWT in zoom developer account? From Zoom api playground?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [November 8, 2017, 6:47pm UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/7 "2017-11-08T18:47:31Z")

</div>

Not sure I understand the question. You need to generate it, the token made available for the playground is set to expire after 10 minutes, so you can’t use it for long.

---

<div class="post-metadata">

**Author:** ![Priyank\_Kotiyal1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Priyank\_Kotiyal1](https://devforum.zoom.us/u/Priyank_Kotiyal1)\
**Post date:** [November 9, 2017, 4:35am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/8 "2017-11-09T04:35:15Z")

</div>

Hi joshua,

&nbsp; &nbsp; I have read the article&nbsp;[https://developer.zoom.us/blog/api-authentication-frameworks/](https://developer.zoom.us/blog/api-authentication-frameworks/) and it is mentioned that you can get it from your developer account. I just want to confirm, may be I am missing something? See following -:

 ![](https://support.zoom.us/hc/user_images/pEb73aRBtxW3JQDfuvHmJQ.png)

---

<div class="post-metadata">

**Author:** ![Zoom\_Developer](https://avatars.discourse-cdn.com/v4/letter/z/eb8c5e/32.png) [@Zoom\_Developer](https://devforum.zoom.us/u/Zoom_Developer)\
**Post date:** [November 9, 2017, 6:09am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/9 "2017-11-09T06:09:09Z")

</div>

Hi Priyank,&nbsp;

&nbsp; &nbsp; we will be updating the blog post. As Joshua said, the jwt that you get from playground should not be used in your production application as it has a short expiry time.

Wei@Zoom

---

<div class="post-metadata">

**Author:** ![Roger\_Cheng](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Roger\_Cheng](https://devforum.zoom.us/u/Roger_Cheng)\
**Post date:** [December 14, 2017, 7:12am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/10 "2017-12-14T07:12:56Z")

</div>

&nbsp;

Api ： &nbsp;[https://api.zoom.us/v1/meeting/get&nbsp;](https://api.zoom.us/v1/meeting/get%C2%A0)

Response：

{  
“uuid”: “unique\_id”,  
“id”: 123456789,  
“host\_id”: “unique\_id”,  
“topic”: “Zoom Meeting”,  
“password”: “”,  
“h323\_password”: “”,  
**"status": 0,**  
“option\_jbh”: false,  
“option\_start\_type”: “video”,  
“option\_host\_video”: true,  
“option\_participants\_video”: true,  
“option\_cn\_meeting”: false,  
“option\_enforce\_login”: false,  
“option\_enforce\_login\_domains”: “”,  
“option\_in\_meeting”: false,  
“option\_audio”: “both”,  
“option\_alternative\_hosts”: “”,  
“option\_use\_pmi”: false,  
“type”: 8,  
“start\_time”: “”,  
“duration”: 0,  
“timezone”: “Asia/Hong\_Kong”,  
“start\_url”: “[https://www.zoom.us/s/123456789?zpk=xxxx](https://www.zoom.us/s/123456789?zpk=xxxx)”,  
“join\_url”: “[https://www.zoom.us/j/123456789](https://www.zoom.us/j/123456789)”,  
“created\_at”: “2016-12-20T02:51:42Z”,  
“occurrences”: [  
{  
“occurrence\_id”: “1483210260000”,  
“start\_time”: “2017-01-01T02:51:00Z”,  
“duration”: 60,  
“status”: “available”  
}  
]  
}

&nbsp;

There is no meeting status&nbsp;in the meeting details obtained in API version 2 &nbsp;like the version 1 &nbsp;&nbsp; **“status”: 0**

**How can I know the meeting is ended &nbsp;through API version 2？**

&nbsp;

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [December 14, 2017, 5:17pm UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/11 "2017-12-14T17:17:24Z")

</div>

Hi Roger,

Please refer to&nbsp;[https://developer.zoom.us/docs/webhooks/](https://developer.zoom.us/docs/webhooks/)

---

<div class="post-metadata">

**Author:** ![ENLYTING.COM](https://avatars.discourse-cdn.com/v4/letter/e/71e660/32.png) [@ENLYTING.COM](https://devforum.zoom.us/u/ENLYTING.COM)\
**Post date:** [February 23, 2018, 4:02am UTC](https://devforum.zoom.us/t/release-of-zoom-api-version-2-and-zoom-rooms-api/771/12 "2018-02-23T04:02:15Z")

</div>

I’m also trying to generate token from [asp.net/](http://asp.net/) C# code.

There seems to be issues with my version of&nbsp;System.IdentityModel.Tokens.Jwt and the code doesn’t work.

May I know the right version to use for&nbsp;using System.IdentityModel.Tokens.Jwt?

Currently, this line of code gives me error

using System.IdentityModel.Tokens.Jwt;&nbsp;
