{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/volanea-com/json-schema/volanea-com-domain-schema.json",
  "title": "Domain",
  "description": "A sending domain. On Amazon SES, `status` becomes `verified` once SES accepts the DKIM TXT record — publish all four records and poll this endpoint (or `POST /v1/domains/{id}/verify`) until then; SES is re-checked every 5 minutes for up to 72 hours, after which the domain is marked `failed`. On other providers `status` becomes `verified` once the ownership and SPF records pass.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/volanea-com-openapi.json#/components/schemas/Domain",
  "type": "object",
  "properties": {
    "domainId": {
      "type": "string"
    },
    "projectId": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "verified",
        "failed"
      ]
    },
    "dkimStatus": {
      "type": "string",
      "enum": [
        "pending",
        "verified",
        "failed",
        "not_applicable"
      ]
    },
    "spfStatus": {
      "type": "string",
      "enum": [
        "pending",
        "verified",
        "failed"
      ]
    },
    "dmarcStatus": {
      "type": "string",
      "enum": [
        "pending",
        "verified",
        "failed"
      ]
    },
    "trackingStatus": {
      "type": "string",
      "enum": [
        "pending",
        "verified",
        "failed"
      ]
    },
    "mailFromStatus": {
      "type": "string",
      "enum": [
        "pending",
        "verified",
        "failed",
        "not_applicable"
      ],
      "description": "Custom MAIL FROM subdomain (`bounce.<domain>`) — carries the bounce path and lets DMARC align SPF."
    },
    "mailFromDomain": {
      "type": [
        "string",
        "null"
      ]
    },
    "selector": {
      "type": [
        "string",
        "null"
      ],
      "description": "DKIM selector published at `<selector>._domainkey.<domain>`."
    },
    "verifiedForSending": {
      "type": "boolean",
      "description": "Whether the provider will currently accept mail from this domain."
    },
    "dkimTokens": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Legacy SES Easy DKIM CNAME tokens. Empty for domains onboarded with BYODKIM, which publish a single TXT record instead."
    },
    "verificationToken": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastCheckedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "inboxId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Scope: only this inbox may add sending identities on the domain. Null = any inbox."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "dnsRecords": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DnsRecord"
      },
      "description": "The DNS records to install."
    }
  },
  "required": [
    "domainId",
    "domain",
    "status",
    "createdAt",
    "dnsRecords"
  ],
  "$defs": {
    "DnsRecord": {
      "type": "object",
      "properties": {
        "purpose": {
          "type": "string",
          "enum": [
            "ownership",
            "dkim",
            "spf",
            "dmarc",
            "tracking",
            "mailfrom"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "TXT",
            "CNAME",
            "MX"
          ]
        },
        "host": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "verified",
            "failed",
            "not_applicable"
          ]
        }
      },
      "required": [
        "purpose",
        "type",
        "host",
        "value",
        "status"
      ]
    }
  }
}