XMPP messages or any other XMPP stanza can be sent using this API by sending an HTTP POST request to (by default) http://localhost:8080/rest/stream/?api-key=API_KEY
with serialized XMPP stanza as a content, where API_KEY
is the API key for HTTP API.
This key is set in etc/config.tdsl.
Also, each request needs to be authorized by sending a valid administrator JID and password as user and password of BASIC
HTTP authorization method.
Content of HTTP request should be encoded in UTF-8
and Content-Type
should be set to application/xml
.