what is api based automation