Skip to main content
The Messaging endpoints expose XMPP messaging features over HTTP — no persistent XMPP connection required. Use these endpoints to send chat messages, manage presence subscriptions, maintain your contact roster, and retrieve queued messages. All endpoints require a valid JWT bearer token. Messages are sent and received as XMPP stanzas via the authenticated account.

Endpoints

Message retrieval

The Neuron broker queues messages for accounts that are not actively polling. Use Pop messages to retrieve queued messages and remove them from the server in one call. Use Clear messages to discard queued messages without reading them. For real-time push delivery, Register event handler lets you bind a JavaScript function to incoming message types via the /Events.js mechanism.

Presence and roster

Before you can probe a contact’s presence or send them an IQ, you need a mutual presence subscription. The typical flow:
  1. Call Send presence subscription to request access.
  2. The contact accepts — call Send subscription accepted on your end.
  3. Call Presence probe to get their full JID for IQ queries.