Zendesk Chat API does not return anything | Community
Skip to main content

Zendesk Chat API does not return anything

  • September 17, 2023
  • 5 replies
  • 0 views

Nathan16

Our app is integrating with Zendesk Chat API. We have the OAuth flow working, and are able to make authorized requests.

However, when calling the API - for example:
https://www.zopim.com/api/v2/chats

We are receiving the following response:

{
  "chats": [],
  "count": 0
}

This is weird because in our Zendesk Chat environment we have open and closed chats (using the Zendesk Chat widget).

How does this work? Am I missing something here?

5 replies

  • September 20, 2023
Hi Nathan! 
 
That definitely does seem strange. Out of curiosity, which OAuth flow are you using?

Nathan16
  • Author
  • September 20, 2023

We are using the Authorization code grant flow as described here:

https://developer.zendesk.com/documentation/live-chat/getting-started/auth/#authorization-code-grant-flow

Managed to implement this without any issues. The resulting bearer token works fine, and all API calls I make are successful.

However the chats response is always empty. For context, I have a Zendesk developer account and I tried creating a "chat" by using the Messaging Chat Widget which I found here:
https://subdomain.zendesk.com/admin/channels/messaging_and_social/channels_list
Is that the correct approach? Should chats made in that widget be showing up in the API response? I'd assume so.

I'm also quite confused about what the difference is between Zendesk Chat and Zendesk Conversations.

 


Nathan16
  • Author
  • September 22, 2023

Anyone?


Nathan16
  • Author
  • October 9, 2023

Bump... @erica26


n00bchik
  • March 20, 2024

The same for me. It returns only value created via POST. Each chat generates ticket, but does not generate chat entity. Am I missing something?