Rest API Question

Hello,

I have some custom code that goes out to one of our vendors and pulls in a list of leads. I am using the rest api to loop over the record set and insert the new leads into Suite. This is working perfectly.

The problem we are facing are duplicate leads. Is there a way to filter out duplicates already in Suite using a custom field through the rest api?

A quick follow up to this. I have figured out a work around to my issue.

Instead of going straight into SuiteCRM, I am dropping the vendor leads into a temporary holding table, then comparing the leads in SuiteCRM against the leads in the temp table based on my custom field. Then we remove any duplicates it finds, then I am calling the rest api to insert the remaining leads into SuiteCRM.

This is probably not the cleanest and most efficient way to do this, but we are dealing with a time constraint.