Chat API tutorial: Generating an OAuth token (integrated Chat accounts)

Return to top


  • Lev

    hi, i followed the steps in the article and got an access token with no errors :D 

    but I seems cannot use this token to access the Conversation APi, i got invalid scope error, 

    I added a screen shot here for the error of scope 

    also this is how i get the access token 

    when i did this cURL call, I tried with scope = chat / scope= read write, i could get token no problem, but I always end up with same invalid scope error when I try to access the conversation API, 

    Any suggestion is appreciated

    thank you!

  • Remi Saumet
    Zendesk Customer Care

    Hi Lev,

    Thank you for your post, hope you are doing well today!

    According to the requests / calls you want to make through the conversation API you will need more than the Chat scope and have to set the scope of the token to readwrite, and chat.

    Please refer to the section Authentication in Chat Conversations API for a better understanding.

    For instance, retrieve the Token with :

    I would also encourage you to have a look at the following documentation : Getting started with the Chat Conversations API, that should point you in the right direction.

    Hope this helps!

    Have a great rest of your day.

    Best regards,

  • Matt Schembri

    I've got an access token generated through "Implicit grant flow" detailed at

    How can my Zendesk support app use this token?

    Is there a clear cut way to get chat data into a zendesk support app?

  • John Espina

    Hi Matt,

    In regards to your concern, you can use OAuth 2 to authenticate all your application's API requests to Zendesk. OAuth provides a secure way for your application to access Zendesk data without having to store and use the passwords of Zendesk users, which is sensitive information.

    Please check this article:

    John Espina | Customer Advocate


Please sign in to leave a comment.

Powered by Zendesk