Skip to main content
Question

JWT Not working for Production at all (for sandbox the same)

  • May 26, 2022
  • 3 replies
  • 817 views

I got test environment for customer, but I can't access to get data.
I created Jwt for production, but in response I catch Invalid token.
May somebody knows what a reason can be?
production-jwt.png1653558210039.png

3 replies

  • May 26, 2022

Hi @Alina Zabolotnaia I'm not seeing a screenshot where you are actually getting the valid token before calling the Call Log API. The problem could be that you haven't been able to correctly set up postman for JWT and get the token, in which case I'd recommend reading through this guide and using the Postman collection provided here for testing JWT auth. Once that works, please confirm and then execute Call Log API.


@Suyash Joshi thank you for your answer! I did according this guide and got this error. What can be the problem?

1653646877711.png


ByrneReese
Community Manager
Forum|alt.badge.img+3
  • Product Manager
  • May 27, 2022
@Alina Zabolotnaia What token are you using in your Authorization header? Bear in mind that the JWT token is used to retrieve an access token, and this access token is then used in your HTTP Authorization header to successfully authenticate with RingCentral. A common misunderstanding is that the JWT token you retrieve from the Developer Console is used directly in your Authorization header. Do you know if this is what you are doing?