Retrieve API endpoint through EVN var