> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuro-tech.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Xml Message

> Allows the client to send a custom XML normal message from its account to an XMPP recipient.

## Overview

Allows the client to send a custom XML normal message from its account to an XMPP recipient.

## Authentication

Requires a valid JWT bearer token.

## Notes

This endpoint uses the request schema notation described in [Pattern matching](/neuron-api/pattern-matching).


## OpenAPI

````yaml /test-api/openapi.yaml post /Agent/Xmpp/SendXmlMessage
openapi: 3.1.0
info:
  title: Neuron Agent API
  version: 1.0.0
  description: |-
    The Agent API exposes core Neuron functionality over HTTP so services can
    operate without a persistent XMPP connection. Endpoints are grouped by
    capability, starting with Accounts and XMPP messaging.
servers:
  - url: https://{host}
    variables:
      host:
        default: neuron.example.com
        description: Neuron domain issued to you.
security:
  - bearerAuth: []
tags:
  - name: Accounts
  - name: Crypto
  - name: Open intelligence
  - name: Legal and contracts
  - name: State machines
  - name: Storage
  - name: Tokens
  - name: Wallet
  - name: XMPP messaging
paths:
  /Agent/Xmpp/SendXmlMessage:
    parameters:
      - $ref: '#/components/parameters/AgentReferer'
    post:
      tags:
        - XMPP messaging
      summary: Send Xml Message
      description: >-
        Allows the client to send a custom XML normal message from its account
        to an XMPP recipient.
      operationId: post_Agent_Xmpp_SendXmlMessage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                to:
                  type: string
                subject:
                  type: string
                language:
                  type: string
                id:
                  type: string
                xml:
                  type: string
              additionalProperties: true
              required:
                - to
                - xml
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  sent:
                    type: boolean
                  id:
                    type: string
                additionalProperties: true
                required:
                  - sent
                  - id
components:
  parameters:
    AgentReferer:
      name: Referer
      in: header
      required: true
      description: >-
        Your application's HTTPS URL, for example https://app.example.com/.
        Include this header on every Agent API request, including backend calls,
        login, and account creation. Browser clients must use a referrer policy
        that sends the application origin. See
        /neuron-api/api-basics#required-referer-header.
      schema:
        type: string
        format: uri
      example: https://app.example.com/
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.