Getting ticket ID from conversations API for ongoing chat
BeantwortetWhen a chat comes through the conversations API I would like to update the corresponding ticket with some information while the conversation is going on.
To do this, I would like to extract the Ticket ID via an API so I can use the tickets API to update it.
I know that I can get the chat id with the `raw_id` field in the VisitorChannel object and I can then use that ID to query the /api/v2/chats/<chat_id> endpoint to get `zendesk_ticket_id`. However, it seems that this API only works once the chat has actually ended.
Is there any way to either get the ticket ID directly from the conversations API or another chat API that I can use to fetch data for ongoing chats? I can see the ticket ID in the GUI as an agent, so surely the data is available.
See also the conversation here in the API forum: https://support.zendesk.com/hc/en-us/community/posts/4411292454938-Getting-ticket-ID-from-conversations-API-for-ongoing-chat
-
Offizieller Kommentar
Hi Soren,
Thanks for your suggestion. Our Conversations API is in maintenance mode and we don't have any plans to add new features to it. This issue could eventually be tackled in the SunCo Switchboard API - we keep a lookout to similar requests on the forum when we are building our product roadmap.
Best,
Sarah D.
-
What's the recommended way to get the ticketId from a current conversation then?
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
2 Kommentare