API ready for M1

Need to write script