API for getting connections