Add Monitor (XML API)

Last modified on May 22, 2024

To create a new monitor, send a POST request to /devices/upload with an XML body containing the monitor type, name, interval, and other configuration parameters.


  • AlertSite XML API supports creating Web URL, API endpoint, email, FTP, TCP, DNS and ping monitors. To create DéjàClick, SoapUI and Selenium monitors, you can use the JSON API. BitBar monitors, security scans and ServerAgents cannot be created via API.

  • New monitors are set to use your account’s default monitoring locations. Changing monitor locations is not supported in the XML API, but is supported in the JSON API.


Request URL


Request Body

Below is a complete example with all supported XML tags and attributes. The monitor configuration is specified in the <TxnDetail> tag. You can start with this template, replace the values with yours, and delete the items you do not need.

For a description of the XML tags and attributes, see Monitor Data Fields. Note that some tags and attributes are specific to certain monitor types.


         <Login>[email protected]</Login>

               Password="roundtrip email password"
               RealmPassword="basic auth password"
               RealmUserId="basic auth userid"
               UserId="roundtrip email userid"
            <TxnName>Widget Shopping Cart</TxnName>

            <!-- Optional assertions for API endpoint monitors -->
                  <Comparison>does not contain</Comparison>
                  <Source>JSON Response</Source>
                  <Value>The Lord of the Rings</Value>


Response Body

On success, the operation returns the ID of the created monitor:


   <Message>No errors.</Message>


See Also

Edit Monitor
List Monitors
Get Monitor
Delete Monitor
Get Status
AlertSite XML API

Highlight search results