added api sample