Added api to build script