refactor(api): switched to using ENV variable