get v1 api from secrets