Update mail api interface