I'm trying to retrieve information for Campaign interactions. I know I can get historical information using the conversation query, but the most information I seem to get are the campaign ID, contact list ID, and contact ID.
I also need record status, timezone and whether or not it was on a DNC.
I then thought I could subscribe to the topic v2.outbound.campaigns.{id}.progress, and when all contacts have been attempted, I could do an export of the contact list to get that information. But there's no direct connection to that contact in the export and the conversation ID as there could've been many attempts until it got to the final record.
Is there a way to get the call records in real time without having to do an export?
Hi @alex7 You could also a dedicated queue for your campaign interactions, then subscribe to the v2.routing.queues.{id}.conversations notification topic. More info on that solution and alternatives in this thread
However that doesn't give you the data you are asking for. The conversation details response contains outbound contact list id and contact ID as you mentioned.
Also, the response for GET
/api/v2/outbound/dnclists/{dncListId} , within the importStatus object is targetContactListIds. You may be able to cross check the contact list id in the conversation details with this one, then look the state field for record import status