Recent searches
No recent searches
Zendesk Chat API does not return anything
Posted Sep 17, 2023
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?
0
5
5 comments
Erica Girges
That definitely does seem strange. Out of curiosity, which OAuth flow are you using?
0
Nathan van Jole
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.
0
Nathan van Jole
Anyone?
0
Nathan van Jole
Bump... Erica Girges
0
n00bchik noobchan
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?
0