add api for iOS app.