Hi @Manisha_Mirchandani ,
for the upload through UI, there is a feature you can enable:-
https://experienceleague.adobe.com/docs/experience-manager-65/assets/managing/duplicate-detection.html?lang=en
However, for Assets API, afaik you need to write custom logic to detect and handle it, take a l...