# Simple Java test example to call REST api using JWT

**URL:** <https://devforum.zoom.us/t/simple-java-test-example-to-call-rest-api-using-jwt/877>\
**Category:** API and Webhooks\
**Created:** [January 15, 2018, 12:40pm UTC](https://devforum.zoom.us/t/simple-java-test-example-to-call-rest-api-using-jwt/877 "2018-01-15T12:40:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ekta\_Goel](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@Ekta\_Goel](https://devforum.zoom.us/u/Ekta_Goel)\
**Post date:** [January 15, 2018, 12:40pm UTC](https://devforum.zoom.us/t/simple-java-test-example-to-call-rest-api-using-jwt/877/1 "2018-01-15T12:40:47Z")

</div>

I am doing a small poc on zoom usage in customised Java application. On calling REST api, it seems token is required for authorization through JWT.

1. I am not sure how to create JWT token in Java

&nbsp;

1. How this token will be passed while calling REST api using Java.

&nbsp;

Is there any example tutorial.

Please help.

---

<div class="post-metadata">

**Author:** ![harris\_yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/harris_yang/32/155_2.png) [@harris\_yang](https://devforum.zoom.us/u/harris_yang)\
**Post date:** [January 15, 2018, 2:12pm UTC](https://devforum.zoom.us/t/simple-java-test-example-to-call-rest-api-using-jwt/877/2 "2018-01-15T14:12:54Z")

</div>

1. Please refer to [https://jwt.io](https://jwt.io) to create a JWT Token.
2. Please refer to [https://zoom.github.io/api](https://zoom.github.io/api)  
You can pass the token to the API either in the HTTP Authorization Header using ‘Bearer’ or via Query Parameter in your API call as ‘access\_token’.  
Header  
Authorization: Bearer

Query Parameter: ?access\_token=

---

<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:35pm UTC](https://devforum.zoom.us/t/simple-java-test-example-to-call-rest-api-using-jwt/877/3 "2020-08-21T17:35:32Z")

</div>

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


