Currently the only way to get a chat's id is by calling client.get('chat') inside a Chat Sidebar app (https://developer.zendesk.com/api-reference/apps/apps-chat-api/chat_sidebar/#chat-object).
There has to be a way to get the chat id without using the Sidebar App.
The sidebar app (The iframe) is requesting the chat id from the main window, so why is there no way to get it directly from the main window?
Knowing the chat id is a very basic requirement for any app that integrates with Zendesk.
Please sign in to leave a comment.