Skip to main content
POST
/
api
/
domains
cURL
curl --request POST \
  --url https://domainwarden.app/api/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "example.com",
  "label": "My Website",
  "description": "Production website for client XYZ",
  "colour": "#3B82F6",
  "whois_check_interval": "daily",
  "dns_check_interval": "hourly",
  "enabled_dns_records": [
    "A",
    "AAAA",
    "MX",
    "TXT"
  ]
}
'
{
  "data": [
    {
      "id": "019a11e5-3072-707a-82b2-91bf8b940e80",
      "label": "My Website",
      "domain": "example.com",
      "description": "Production website for client XYZ",
      "colour": "#3B82F6",
      "provider": null,
      "expires_at": null,
      "components": {
        "whois": {
          "is_enabled": true,
          "check_interval": "daily",
          "check_status": "PENDING",
          "latest_check_details": null,
          "last_checked_at": null,
          "next_check_at": null,
          "last_manual_check_at": null,
          "changes_detected_at": null,
          "has_changed_recently": false,
          "was_manually_checked_recently": false
        },
        "dns": {
          "is_enabled": true,
          "check_interval": "hourly",
          "check_status": "PENDING",
          "latest_check_details": null,
          "last_checked_at": null,
          "next_check_at": null,
          "last_manual_check_at": null,
          "changes_detected_at": null,
          "has_changed_recently": false,
          "was_manually_checked_recently": false,
          "enabled_records": [
            "A",
            "AAAA",
            "MX",
            "TXT"
          ]
        },
        "ssl": {
          "is_enabled": true,
          "issuer": null,
          "organization": null,
          "expires_at": null,
          "last_checked_at": null,
          "last_found_invalid_at": null,
          "last_considered_valid_at": null,
          "has_changed_recently": false
        }
      },
      "created_at": "2025-10-25 12:30:45",
      "updated_at": "2025-10-25 12:30:45"
    }
  ]
}

Authorizations

Authorization
string
header
required

You can obtain your API Token from your Domainwarden account settings.

Body

application/json
domain
string
required

The domain name to monitor (e.g., example.com). Must be between 3 and 100 characters and follow valid domain format.

Example:

"example.com"

label
string
required

A friendly label for the domain. Must be between 3 and 40 characters.

Example:

"My Website"

description
string | null

optional A description of the domain. Maximum 1000 characters.

Example:

"Production website for client XYZ"

colour
string | null

optional Hex color code for the domain (e.g., #FF5733 or #F57).

Example:

"#3B82F6"

whois_check_interval
string | null

optional How often to check WHOIS records. Available options depend on subscription plan.

Example:

"daily"

dns_check_interval
string | null

optional How often to check DNS records. Available options depend on subscription plan.

Example:

"hourly"

enabled_dns_records
string[]

optional DNS record types to monitor.

Example:
["A", "AAAA", "MX", "TXT"]

Response

data
object[]
Example:
[
{
"id": "019a11e5-3072-707a-82b2-91bf8b940e80",
"label": "My Website",
"domain": "example.com",
"description": "Production website for client XYZ",
"colour": "#3B82F6",
"provider": null,
"expires_at": null,
"components": {
"whois": {
"is_enabled": true,
"check_interval": "daily",
"check_status": "PENDING",
"latest_check_details": null,
"last_checked_at": null,
"next_check_at": null,
"last_manual_check_at": null,
"changes_detected_at": null,
"has_changed_recently": false,
"was_manually_checked_recently": false
},
"dns": {
"is_enabled": true,
"check_interval": "hourly",
"check_status": "PENDING",
"latest_check_details": null,
"last_checked_at": null,
"next_check_at": null,
"last_manual_check_at": null,
"changes_detected_at": null,
"has_changed_recently": false,
"was_manually_checked_recently": false,
"enabled_records": ["A", "AAAA", "MX", "TXT"]
},
"ssl": {
"is_enabled": true,
"issuer": null,
"organization": null,
"expires_at": null,
"last_checked_at": null,
"last_found_invalid_at": null,
"last_considered_valid_at": null,
"has_changed_recently": false
}
},
"created_at": "2025-10-25 12:30:45",
"updated_at": "2025-10-25 12:30:45"
}
]