Add support for REST sendMessage call