get endpoints