Skip to main content
POST
/
Agent
/
Xmpp
/
SendFormattedMessage
Send formatted message
curl --request POST \
  --url https://{host}/Agent/Xmpp/SendFormattedMessage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "bob@neuron.example.com",
  "message": "# Hello\n\n**Bold** and _italic_ text.",
  "subject": "",
  "language": "en",
  "id": ""
}
'
{
  "sent": true,
  "id": "msg-67890"
}

Overview

Send a formatted chat message. Provide Markdown in message and the server creates plain text and HTML representations for recipients to choose from.

Authentication

Requires a valid JWT bearer token.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
to
string
required
message
string
required
subject
string
required
language
string
required
id
string
required

Response

200 - application/json

Success

sent
boolean
required
id
string
required