# How to create JWT token using REST api in c#

**URL:** <https://devforum.zoom.us/t/how-to-create-jwt-token-using-rest-api-in-c/6620>\
**Category:** API and Webhooks\
**Created:** [November 12, 2019, 11:50am UTC](https://devforum.zoom.us/t/how-to-create-jwt-token-using-rest-api-in-c/6620 "2019-11-12T11:50:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [November 12, 2019, 5:03pm UTC](https://devforum.zoom.us/t/how-to-create-jwt-token-using-rest-api-in-c/6620/2 "2019-11-12T17:03:28Z")

</div>

Hey @vaibhav.bhosale, thanks for posting and using Zoom!

You can reference our JWT with Zoom guide:

[https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom)

I would suggest using one of the C# libraries here:

> **[JWT.IO](https://jwt.io)**
>
> JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.

Possible duplicate post with more info:

> [@C# JWT token invalid](https://devforum.zoom.us/t/c-jwt-token-invalid/5968):
>
> I am having an issue with token, the error is invalid token. Please help. string key = "MY\_Key"; var securityKey = new Microsoft.IdentityModel.Tokens.SymmetricSecurityKey(Encoding.UTF8.GetBytes(key)); var credentials = new Microsoft.IdentityModel.Tokens.SigningCredentials(securityKey, SecurityAlgorithms.HmacSha256); var header = new JwtHeader(credentials); var payload = new JwtPayload { …

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/how-to-create-jwt-token-using-rest-api-in-c/6620)._
