Avoid Duplicate Email Contacts On All My Lists

marcelb

Beginner
Apr 19, 2022
1
0
1
Hi,

Let's say this email contact is in listID 1

[email protected]

Then... I like to submit a new contact via the API to listID 2, same email, it will be added to the list but I like to block it as it's already in another contact list.

So basically I like to avoid duplicate contacts (whatever contact lists they are in)

I tried to look into the API docs if there's a setting but the docs/knowledgebase gives an error


Thanks,

Marcel
 

wasif

Administrator
Staff member
Apr 9, 2019
469
85
28
@marcelb

For this, either you'll need to use the list deduping feature manually, or if you want to automate the process and do real-time filtration then you can use the API to find if the contact exists in listID 1 before you let it add to the listID 2.

API Request #1
api/getContacts?list_id=123&[email protected]

If result -> Error: Contact doesn't exist, then

API Request #2
/api/addContact

Please let me know if it helps!