API_ENDPOINT taken from ENV