How to store unique data from API

I am using Square’s Team Members API and I want to store the data in the database. I am able to make it work successfully by referring to this video here → vid link but apparently pressing the button again saves the same exact data, just with another unique ID.

So the way it works is, there is a backend workflow which creates a new app data on a selected data type, which is called using a button that calls the API and then schedules an API workflow on a list.

I want to know how I can apply a condition to search the database for an email that is already inside so that the workflow doesn’t create a duplicate entry