# JWT Generation Documentation Confusion

**URL:** <https://devforum.zoom.us/t/jwt-generation-documentation-confusion/13569>\
**Category:** API and Webhooks\
**Created:** [April 16, 2020, 7:24pm UTC](https://devforum.zoom.us/t/jwt-generation-documentation-confusion/13569 "2020-04-16T19:24:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmwill23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kmwill23/32/6297_2.png) [@kmwill23](https://devforum.zoom.us/u/kmwill23)\
**Post date:** [April 16, 2020, 7:24pm UTC](https://devforum.zoom.us/t/jwt-generation-documentation-confusion/13569/1 "2020-04-16T19:24:30Z")

</div>

**Description**  
Referring to this documentation: [https://marketplace.zoom.us/docs/guides/auth/jwt](https://marketplace.zoom.us/docs/guides/auth/jwt)

The sample provided for JWT being included as the Bearer for an API call has some consistency issues, or is missing information. Or I am completely missing something.

The guide indicates this:  
**A single JWT consists of three components: Header, Payload, and Signature with a `.` separating each. For example: `aaaaa.bbbbb.ccccc`**

The sample API code at the end shows the bearer value:  
**"Bearer"**

This bearer value does not have three distinct parts separated by periods as the JWT example above shows.

Here is a token generated by the JWT App interface:

* * *

(slightly modified to make it an invalid token)

This token does have three distinct parts separated by periods.

However, the documentation for generating a JWT token does not indicate that the Header and Payload need to be encoded. In fact, it clearly states:  
_ **Note:** Though protected against tampering, the information contained in the Header and Payload is readable by anyone. Do not store confidential information in either of these elements._

So my questions!

1. How do you encode the Header and Payload so it has the appearance of the JWT App generated JWT token and not plain text?
2. How do you take the three (Header, Payload, Signature) and further encode them in a way that is comparable to the sample “Bearer” value? Or does that sample Bearer value have an invalid format?

**Error**  
No error, yet. Developing the integration.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
None yet.

**How To Reproduce (If applicable)**  
N/A

**Screenshots (If applicable)**  
N/A

**Additional context**  
N/A

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [April 16, 2020, 9:09pm UTC](https://devforum.zoom.us/t/jwt-generation-documentation-confusion/13569/2 "2020-04-16T21:09:06Z")

</div>

Hi @kmwill23, my apologies for any confusion this has caused. The token in that cURL is intended to be a non-encoded JWT; for brevity it’s just a sample string. I can see how this is confusing. I’ve updated the documentation to be more clear.

```bash
curl --request GET \
  --url 'https://api.zoom.us/v2/users?status=active&page_size=30&page_number=1' \
  --header 'authorization: Bearer { your_token }' \
  --header 'content-type: application/json

```

---

<div class="post-metadata">

**Author:** ![kmwill23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kmwill23/32/6297_2.png) [@kmwill23](https://devforum.zoom.us/u/kmwill23)\
**Post date:** [April 16, 2020, 9:38pm UTC](https://devforum.zoom.us/t/jwt-generation-documentation-confusion/13569/3 "2020-04-16T21:38:50Z")

</div>

I had a feeling it would be something like this! Thank you Michael.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 17, 2020, 7:47pm UTC](https://devforum.zoom.us/t/jwt-generation-documentation-confusion/13569/4 "2020-04-17T19:47:08Z")

</div>

Let us know if you have additional questions! 🙂

-Tommy

---

<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, 8:32pm UTC](https://devforum.zoom.us/t/jwt-generation-documentation-confusion/13569/5 "2020-08-21T20:32:54Z")

</div>

Closed on August 21, 2020, 8:32pm UTC


