Plan api endpoint setup