Design of API