Add api structure. #6