It depends on which API testing you need to perform. A lot of applications used the so-called “internal” API to communicate between different parts of the application. We strongly feel that these API endpoints should be tested at priority instead of working on UI testing. The reason for that is that it is a core of the system, and it should work as designed.