Mautic Community Forums

API: Batch DNC (Do Not Contact) & Batch DELETE using EMAIL addresses

My idea is:
I would like to add an option either for the API itself or the API library to do BATCH DNC (Do Not Contact) and Batch DELETE using EMAIL addresses. Currently there is only an option to do Batch DELETE via MAUTIC IDs which doesn’t help me much and just complicates. And also the ‘addDNC’ procedure also only uses a MAUTIC ID and does them one at a time which is also non-helpful.
My current way of doing things is via a Batch ADD Contacts w/ Custom Field marks which then add them to segments which are then dealt with either by an ongoing DNC campaign or a DELETE campaign.
I want a more straightforward no-fuss API procedure which will do it all straight away, via multiple EMAIL addresses, without the need to rely on campaigns to handle it.

I think these groups of people would benefit from this idea:
Developers, API users

Why I think they would benefit from this idea:
Makes life simpler

Any code or resources to support this idea:

Are you willing to work on this idea?:

What skills and resources do you need to explore this further?

Hi, I am not sure if I understand this correctly so maybe this is a stupid question, but why you just do not write the script using Mautic api library that gets Mautic ids for given email addresses and use existing library methods to delete / addDNC to contacts?

Also what you are asking for should be quite easy to implement with the custom plugin as well.