Using Zendesk Chat API



Posted Jan 24, 2022

Two questions:

1. To execute an oauth flow with `client_credentials` grant type, we need to create an API client in zendesk chat and set it's `"client_type": "confidential"`
But there's no UI option to do this. This has to be done using update client API.
However, while trying to execute zopim APIs (the Chat API) using username, password as shown in API documentation, we are getting a 401.
How to generate and authenticate the credentials for using the Chat API?

2. Would the same credentials used for reading objects like users and tickets work for reading the Chat API's objects too? Asking this because the chat API looks like a separate product (Zopim). 


1

1

1 comment

      Hi Sai,
       
      Basic authentication is not supported for the Chat API.  You can create a separate OAuth client to generate a bearer token manually until your client credentials grant flow is set up.  Also, credentials for Support API resources (tickets, etc.) cannot authenticate Chat API requests.  Chat API requests must be authenticated by a token generated by a Chat API OAuth client.
       
      Best,

      0


      Sign in to leave a comment.

      Didn't find what you're looking for?

      New post