Hey there @montassar !
Regarding the API application with no web interface… I assume there is no user involved? If that is the case, I recommend taking a look at the following documentation regarding machine to machine (M2M) applications:
Hope this helps get you headed in the correct direction