# Video SDK JWT token issue

**URL:** <https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227>\
**Category:** Web\
**Created:** [July 29, 2022, 9:00am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227 "2022-07-29T09:00:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukas.busek](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lukas.busek](https://devforum.zoom.us/u/lukas.busek)\
**Post date:** [July 29, 2022, 9:00am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/1 "2022-07-29T09:00:39Z")

</div>

We are trying to get video session recording (we are paying VIDEO SDK customer) running but we have some technical issues with JWT tokens.

As for the JWT → we are getting 401 response (error 124) with a valid JWT

GET [https://api.zoom.us/v2/videosdk/recordings?page\_size=100&trash=true&from=2022-06-02&to=2022-06-16HTTP/1.1](https://api.zoom.us/v2/videosdk/recordings?page_size=100&trash=true&from=2022-06-02&to=2022-06-16HTTP/1.1)

Accept: application/json

Authorization: bearer [REDACTED]

{“code”:124,“message”:“Invalid access token.”}

0

JWT token was valid as per [jwt.io](http://jwt.io) during the testing time.

I am not able to post the entire trace … limited by zoom to 2 URLs only

Thanks

Lukas

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [July 29, 2022, 3:38pm UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/2 "2022-07-29T15:38:28Z")

</div>

Hi @lukas.busek ,

Please never post sensitive information like an access token.

When did you notice your token no longer working? Can you try generating a new one?

Thank you,  
Gianni

---

<div class="post-metadata">

**Author:** ![lukas.busek](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lukas.busek](https://devforum.zoom.us/u/lukas.busek)\
**Post date:** [August 1, 2022, 7:31am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/3 "2022-08-01T07:31:06Z")

</div>

Hi Gianni,

Token was no longer valid hence I took the chance :-). Anyway here is our issue:

We generate JWT for our standard video calls. That works fine. When we the same logic to generate JWT for recording auth … we get \> \> \> \> \> \> \> \> \> 401 response (error 124) with a valid JWT

It never worked for us … since we started the implementation of the recording functionality.

Thanks,

Lukas

---

<div class="post-metadata">

**Author:** ![lukas.busek](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lukas.busek](https://devforum.zoom.us/u/lukas.busek)\
**Post date:** [August 1, 2022, 7:32am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/4 "2022-08-01T07:32:37Z")

</div>

We get the same response with a newly generated token as well. Thankjs

---

<div class="post-metadata">

**Author:** ![lukas.busek](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lukas.busek](https://devforum.zoom.us/u/lukas.busek)\
**Post date:** [August 2, 2022, 6:21am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/5 "2022-08-02T06:21:10Z")

</div>

@gianni.zoom … any help or suggestion? thanks

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 2, 2022, 4:26pm UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/6 "2022-08-02T16:26:30Z")

</div>

Hi @lukas.busek ,

Thank you for your patience! I was OOO yesterday.

> [@lukas.busek](#):
>
> We generate JWT for our standard video calls. That works fine. When we the same logic to generate JWT for recording auth … we get \> \> \> \> \> \> \> \> \> 401 response (error 124) with a valid JWT

Did you try using the JWT that you generated with your standard video calls as opposed to creating a new one?

---

<div class="post-metadata">

**Author:** ![lukas.busek](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lukas.busek](https://devforum.zoom.us/u/lukas.busek)\
**Post date:** [August 2, 2022, 5:38pm UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/7 "2022-08-02T17:38:53Z")

</div>

@gianni.zoom …thanks for coming back to me. Here is the workflow:

1. user creates a video call
2. we use Zoom callback to inform the backend that a video call has started
3. we retrieve the ID that we use to associate the actual event (our onw event)
4. we generate JWT  
—\> we get 401 result

Zoom Recording token holds different information than the one for recording.

Are you saying that we should try to reuse an existing JWT? I did not see that anywhere in the documentation.

How are your other customers using it?

Thanks

Lukas

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 3, 2022, 12:46am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/8 "2022-08-03T00:46:21Z")

</div>

Hi @lukas.busek ,

Thank you for sharing this. There may be some gaps in our documentation confusing implementation:

Our [Web Video SDK documentation](https://marketplace.zoom.us/docs/sdk/video/web/essential/recording#get-account-recordings) says to use a VIDEO\_SDK\_JWT:

 ![Screen Shot 2022-08-02 at 5.39.47 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/3/639fb9724e43614e2186953b7e6b8199dadcba53.png)

Alternatively, our [Video SDK APIs for cloud recording](https://marketplace.zoom.us/docs/api-reference/video-sdk/methods/#tag/Cloud-Recording/operation/recordingGet) has the authorization method as OAuth and then passing the JWT App JWT in the download\_url that’s returned in the response body for password protected cloud recordings.

 ![Screen Shot 2022-08-02 at 5.41.14 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/e/7ef378e1dffbebd8f5a8ea68f982ec37955f42b0.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/a/9aca8d312f187b9e07cd90e8affa394ef1429b29.png)

1. Could you clarify which documented guidance you were referencing?
2. Can you confirm if you were ever successful in retrieving recordings and the steps you took to do this?

Thank you,  
Gianni

---

<div class="post-metadata">

**Author:** ![lukas.busek](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lukas.busek](https://devforum.zoom.us/u/lukas.busek)\
**Post date:** [August 3, 2022, 5:50am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/9 "2022-08-03T05:50:22Z")

</div>

@gianni.zoom … look like there is some confusion. I am not talking about recording retrieval.

We have a problem STARTING (initiation) a recording session. We are unable to tell ZOOM API to START recording.

Thanks

Lukas

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [August 10, 2022, 10:37am UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/10 "2022-08-10T10:37:39Z")

</div>

@lukas.busek ,

It looks like you are leveraging a Get request to start the recording. Instead, to start the recording you want to make a **Patch** request:

> **[Cloud recording](https://marketplace.zoom.us/docs/sdk/video/web/essential/recording/#start-recording)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/9/5982827bbc9674e8ad4b1e44616aeedcc7161572.png)

---

<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:** [September 9, 2022, 8:37pm UTC](https://devforum.zoom.us/t/video-sdk-jwt-token-issue/73227/11 "2022-09-09T20:37:57Z")

</div>

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