jus in the api url add in last = /cms/v3/hubdb/tables/{tableIdOrName}/rows?name=<value>&email=<email>
then from result check if the total in the json if it is greater then 0 then record found else no and in else case you can use the insert api to insert the data
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.