Add API methods: translate and getUserDetails