API Token validation | Community
Skip to main content

API Token validation

  • November 16, 2021
  • 0 replies
  • 0 views

Polina

Good Afternoon! 

I create a token to integrate my chatbot with Zendesk Chat via this instruction: https://support.zendesk.com/hc/en-us/articles/4408828740762-Chat-API-tutorial-Generating-an-OAuth-token-integrated-Chat-accounts-

Sometimes my token becomes invalid and I see the following error in logs on my server: 
ERROR [com.justai.zb.channels.zopim.ZopimServiceImpl] - Invalid token <my token>
ERROR [com.justai.zb.channels.zopim.WebSocketBlockingClient] - Failed to update agent status to ONLINE for <id of my chatbot>. 

Could you, please, explain, why can token become invalid (please, provide detailed reasons) and what is the timelimit of token validation (if you have one)? There is no information on this issue in your documentation. 

Thank you!