Proximus interview question

How would you protect API from hacking.