{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eckari-com/json-schema/eckari-com-domain-registration-output-schema.json",
  "title": "domain_registration_output",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eckari-com-domain-intelligence-api-openapi.yml#/components/schemas/domain_registration_output",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "domain",
    "tld",
    "bootstrap_suffix",
    "is_registered",
    "status",
    "registrar",
    "events",
    "nameservers",
    "rdap_server",
    "terms_url"
  ],
  "properties": {
    "domain": {
      "type": "string",
      "description": "ASCII (punycode) domain name as recorded by the registry."
    },
    "unicode_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unicode form of the name when the registry publishes one."
    },
    "tld": {
      "type": "string",
      "description": "Top-level domain - the last label of the name, lower-cased and without a dot (uk for bbc.co.uk, com for example.com). It is the label itself, not necessarily the suffix the IANA bootstrap matched, and not the registrable suffix (co.uk) - read bootstrap_suffix for the entry that actually routed the query."
    },
    "bootstrap_suffix": {
      "type": "string",
      "description": "Suffix that matched in the IANA RDAP bootstrap (RFC 9224 longest-suffix rule) and so selected rdap_server. Usually the same as tld, but it can be longer where IANA publishes a multi-label entry."
    },
    "is_registered": {
      "type": "boolean",
      "description": "True when the registry returned a record. False means the registry has no record (RDAP 404)."
    },
    "status": {
      "type": "array",
      "description": "RFC 9083 status values - the RDAP spelling of EPP status codes, so \"client transfer prohibited\" here is EPP clientTransferProhibited - lower-cased, de-duplicated and sorted.",
      "items": {
        "type": "string"
      }
    },
    "registrar": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name",
        "iana_id",
        "url",
        "abuse_email"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Registrar name from the RDAP registrar entity."
        },
        "iana_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "IANA registrar id where the registry publishes one (gTLDs); null for registries that use their own identifiers."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Registrar URL when published."
        },
        "abuse_email": {
          "type": [
            "string",
            "null"
          ],
          "description": "Registrar abuse contact email when published; frequently redacted."
        }
      }
    },
    "events": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "registered_at",
        "updated_at",
        "expires_at",
        "transferred_at"
      ],
      "properties": {
        "registered_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "Registry creation date (RDAP registration event)."
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "Last change to the registry record (RDAP last changed event)."
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "Registry expiry date (RDAP expiration event)."
        },
        "transferred_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "Last transfer date when the registry publishes one."
        }
      }
    },
    "nameservers": {
      "type": "array",
      "description": "Delegated nameserver hostnames from the registry, lower-cased, de-duplicated and sorted.",
      "items": {
        "type": "string"
      }
    },
    "dnssec_signed": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Registry DNSSEC delegation flag (secureDNS.delegationSigned); null when the registry omits it."
    },
    "rdap_server": {
      "type": "string",
      "description": "Authoritative registry RDAP base URL that answered, resolved from the IANA bootstrap."
    },
    "rdap_last_update": {
      "type": [
        "string",
        "null"
      ],
      "description": "Registry's own last update of RDAP database timestamp - the true freshness of this record."
    },
    "days_until_expiry": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Whole days from now to expires_at, floored; negative when already past expiry."
    },
    "auto_renew_flag": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "True only when the registry publishes the auto renew period status. RDAP does not otherwise expose auto-renew, so null means unknown rather than off."
    },
    "terms_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Link to the first notice the registry published with this response - normally its terms of service. Those terms govern your use of this data and vary by registry, which is why the link is a fact of the record rather than a fixed Eckari constant; the source acknowledgement itself is in meta.attribution. Null when the registry published no notice link."
    },
    "availability_note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set only when the registry has no record; explains that this is strong evidence of availability but not an authoritative EPP check."
    }
  }
}