If you encounter an 'invalid scope' error with your OAuth token, it may be due to incorrect scope settings. Ensure that the token's scope includes 'read', 'write', and 'chat' if you're accessing the Chat Conversations API.
You can retrieve the token with the correct scopes by using a URL like this:
https://www.zopim.com/oauth2/authorizations/new?response_type=token&client_id=CLIENT_ID&scope=read%20write%20chat&subdomain=SUBDOMAIN
Make sure to replace CLIENT_ID and SUBDOMAIN with your actual values. For more details, refer to the section on Authentication in the Chat Conversations API documentation.
To generate an OAuth token for the Zendesk Chat API, you need to follow a series of steps. First, create an OAuth API client by navigating to Zendesk Chat > Account > API & SDKs and clicking the Add API Client button. Enter a name, company, and the…
There are two main methods to create an OAuth token for Zendesk Chat: the 'Implicit' grant flow and the 'Authorization Code' grant flow. The 'Implicit' grant flow is quicker and more convenient for testing environments, while the 'Authorization…
OAuth tokens need to be recreated after account changes because these changes can affect the token's validity. If you generate a token before the changes are applied to your account, you'll need to go through the steps again to ensure the token is…
Testing your new OAuth token is a good practice to ensure it works as expected. You can do this by making a simple GET request to /api/v2/chats using the token. Use the following cURL command, replacing TOKEN with your actual token: ```bash curl…
To update the client_type to 'confidential' for restricted endpoints, you need to perform a couple of API calls. First, get the client ID using your new token with the following command: ```bash curl https://www.zopim.com/api/v2/oauth/clients -H…