add api definition