{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commsharbor/json-schema/commsharbor-domain-schema.json",
  "title": "Domain",
  "description": "A sending domain. State is only ever what was OBSERVED at SES and DNS — this product does not infer it.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commsharbor-organizations-api-openapi.yml#/components/schemas/Domain",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Domain ID."
    },
    "domain": {
      "type": "string",
      "description": "The domain itself, e.g. `example.com`."
    },
    "status": {
      "type": "string",
      "description": "Last observed state."
    },
    "dkim_tokens": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CNAME records to publish for DKIM."
    },
    "dmarc": {
      "type": [
        "object",
        "null"
      ],
      "description": "DMARC policy observed at the domain."
    },
    "mail_from": {
      "type": [
        "object",
        "null"
      ],
      "description": "Custom MAIL FROM subdomain and its observed state."
    },
    "last_observed_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "When SES and DNS were last actually checked (UTC)."
    },
    "created_at": {
      "type": "string",
      "description": "Registration time (UTC)."
    }
  },
  "required": [
    "id",
    "domain",
    "status",
    "dkim_tokens",
    "dmarc",
    "mail_from",
    "last_observed_at",
    "created_at"
  ]
}