question

Samyukta Bharadwaj avatar image
Samyukta Bharadwaj asked Suyash Joshi edited

How can I create and use JWT Token ?

What are the steps and info on creating & using JWT token ?


authentication
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Samyukta Bharadwaj avatar image
Samyukta Bharadwaj answered Suyash Joshi edited

For JWT

Follow guidelines here: https://developers.ringcentral.com/guide/authentication/jwt-flow


step1-jwt.png


step2-jwt.png

Below is code snippet that shows how to use our API for different authorization flows including JWT(last one)

authflowparams.png




Command Line:

make sure to have these two params in the request body:
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
assertion= new jwt token


 
curl --location --request POST 'https://platform.ringcentral.com/restapi/oauth/token' \
--header 'Authorization: Basic <base64 encoded clientID:secret>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \
--data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer' \
--data-urlencode 'assertion=[jwt token']


If you have any issues with JWT tokens, please submit a case with our developer support team here:

https://developers.ringcentral.com/support/create-case


step1-jwt.png (159.3 KiB)
step2-jwt.png (93.1 KiB)
authflowparams.png (219.4 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys