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.
Please sign in to leave a comment.