add api structure