added api how to use