Query Contact List based on system columns

We are having an issue of contacts getting "stuck" in our contact list that has an attempt limit. We maintain a list of contact we have queued in our own database but we are seeing a desync for reasons currently unknown resulting in contacts being in the contact list that our server is not aware of. We want to be able to remove these contacts so that these can either be requeued or just removed if they no longer need to be called.

We need an ability to clean the contact list, however, I do not want to have to download the entire CSV and process it.

I am looking for a means of querying the contact list by preferably CallRecordLastResult-number and return any contacts that have a value and also add a filter on CallRecordLastAttempt-number to prevent grabbing contacts that were just called but have yet to be removed by our system.

Alternatively, the ability to query the contact list and provide all of the contacts ids we are aware of and return all the contacts not contained in the list would work.

Is there an endpoint that would allow this that I am not finding?

There is no way to query a contact list via API; you must download the CSV if you don't already know the contact ID. You can request new features and share your use case at https://purecloud.ideas.aha.io/ideas.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.