add start_api endpoint