The error NotRegistered means that your web app is not registered or the key you are using in the field "to" is not correct. In your case I suspect of the fact that the key is written in 2 lines, and maybe the backspace is being send in the request. Try to send the "to" field key in a single line.