Help Center
Login Sign up
  1. Home
  2. API reference
  3. General API basics

Demo mode

API reference (XML/JSON) · Updated 2023-09-28

Description

In the demo mode, operations can be simulated in live AutoDNS. The demo mode is possible for all job types.

For testing the AutoDNS X3 and the interfaces (JSON, EPP, XML) a demo account to our AutoDNS Sandbox can be created. Please contact the sales department (vertrieb@internetx.com).

If the demo mode is active, the response contains the notification "MSG00001 - Demo mode active". 

Example

Example of a DomainCreate in demo mode.

To activate the demo mode in JSON "true" must be specified in the HTTP header X-Domainrobot-Demo.

Route: POST /domain
HEADER: X-Domainrobot-Demo:true

{
   "name": "example.com",
   "ownerc": {
      "id": 23142212
   },
   "adminc": {
      "id": 23142212
   },
   "techc": {
      "id": 23142212
   },
   "confirmOrder": false,
   "nameServers": [
      {
         "name": "ns1.example.com"
      },
      {
         "name": "ns2.example.com"
      }
   ]
}
{
    "stid": "20190628-app2-dev-23512",
    "messages": [
        {
            "text": "Demo-Modus aktiv.",
            "code": "MSG00001",
            "status": "NOTICE"
        }
    ],
    "status": {
        "code": "N0101",
        "text": "Domain registration was started successfully.",
        "type": "NOTIFY"
    },
    "object": {
        "type": "Domain",
        "value": "example.com"
    },
    "data": [
        {
            "created": "2019-06-28T15:12:48.000+0200",
            "updated": "2019-06-28T15:12:47.000+0200",
            "owner": {
                "context": 4,
                "user": "exampleuser"
            },
            "updater": {
                "context": 4,
                "user": "exampleuser"
            },
            "status": "RUNNING",
            "execution": "2019-06-28T15:12:46.000+0200",
            "id": 4297540445
        }
    ]
}