When 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



From what our Product Manager have mentioned this functionality is not yet available. As more users engage on this feedback/request it can also contribute to driving the demand for it to be added sooner on our roadmap.