# JWT does not work in live but works in postman?

**URL:** <https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857>\
**Category:** API and Webhooks\
**Created:** [December 7, 2020, 10:24pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857 "2020-12-07T22:24:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zkegs](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zkegs](https://devforum.zoom.us/u/zkegs)\
**Post date:** [December 7, 2020, 10:24pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/1 "2020-12-07T22:24:13Z")

</div>

Hi, So I tried a few post/get requests using JWT and it worked using Postman app, but when I tried using the same JWT token in a live app, it fails.

I also tried using oath 2.0 but I was not able to get passed step 2, getting the web token.

Any help would be appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![PantherDeveloper](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pantherdeveloper/32/19077_2.png) [@PantherDeveloper](https://devforum.zoom.us/u/PantherDeveloper)\
**Post date:** [December 7, 2020, 10:53pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/2 "2020-12-07T22:53:43Z")

</div>

Hey @zkegs

Thanks for using the dev forum!

Have you tried to update o the latest version of Zoom, Zoom 1.8.3? This may be the problem.

Gabe  
@PantherDeveloper

---

<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 8, 2020, 7:51pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/3 "2020-12-08T19:51:54Z")

</div>

Hey @zkegs,

Can you share a copy of the request/response you’re using so that we can help debug? If you’re able to get the request to work in Postman, please double check that you’re passing all of the same headers and authentication parameters in your code.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![zkegs](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zkegs](https://devforum.zoom.us/u/zkegs)\
**Post date:** [December 11, 2020, 5:04pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/4 "2020-12-11T17:04:12Z")

</div>

Hi, Thanks for the help.

Request  
[api.zoom.us/v2/meetings/meeingid/registrants](http://api.zoom.us/v2/meetings/meeingid/registrants)

header  
Authorization: Bearer myjwtkeyhere

body  
{“email”:“myemail”,“first\_name”:“name”,“last\_name”:“lastname”,“org”:“company”}

Response  
{“responseText”:"\<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\>  
`300</code>Unsupported Content Type</message></error>","
responseHeader":{“date”:“Fri, 11 Dec 2020 16:43:48 GMT”,“content-length”:“129”,
“server”:“ZOOM”,“expires”:“Thu, 01 Jan 1970 00:00:00 GMT”,“vary”:"
Access-Control-Request-Headers",“pragma”:“no-cache”,“set-cookie”:"_zm_chtaid="";
Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly"
,“x-content-type-options”:“nosniff”,“x-ratelimit-category”:“Light”,“content-type”:
“application/xml;charset=UTF-8”,“connection”:“keep-alive”,“x-zm-trackingid”
:“WEB_f811a…”,“cache-control”:“no-cache, no-store,
must-revalidate, no-transform”},“responseCode”:415}`

---

<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 11, 2020, 11:53pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/5 "2020-12-11T23:53:52Z")

</div>

Hey @zkegs,

Thank you for providing additional information. It looks like this is happening because you are using a Content-Type of `application/xml` when this endpoint only supports JSON. In my requests, I typically don’t supply a Content-Type header and based on the JSON body that the server gets, it’s able to respond as expected. If the tool/server you are using to make the request is setting this header, I would override it with the value `application/json`.

Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![zkegs](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zkegs](https://devforum.zoom.us/u/zkegs)\
**Post date:** [December 14, 2020, 2:38pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/6 "2020-12-14T14:38:08Z")

</div>

Yep, it works now. Thanks much for the help.

---

<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 15, 2020, 8:24pm UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/7 "2020-12-15T20:24:50Z")

</div>

Hey @zkegs,

I’m glad to hear that resolved your issue! If you have any further issues or questions, please don’t hesitate to reach out.

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 15, 2021, 6:25am UTC](https://devforum.zoom.us/t/jwt-does-not-work-in-live-but-works-in-postman/37857/8 "2021-01-15T06:25:09Z")

</div>

Closed on January 15, 2021, 6:25am UTC

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