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

Return to top

4 Comments

  • 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!

    0
  • 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 :

    https://www.zopim.com/oauth2/authorizations/new?response_type=token&client_id=CLIENT_ID&scope=read%20write%20chat&subdomain=SUBDOMAIN

    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,

     
    0
  • Matt Schembri

    I've got an access token generated through "Implicit grant flow" detailed at https://developer.zendesk.com/documentation/live-chat/getting-started/auth/

    How can my Zendesk support app use this token?

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

    0
  • 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: https://support.zendesk.com/hc/en-us/articles/203663836-Using-OAuth-authentication-with-your-application

    John Espina | Customer Advocate

    0

Please sign in to leave a comment.

Powered by Zendesk