{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/senderkit-com/json-schema/senderkit-com-inbound-domain-schema.json",
  "title": "InboundDomain",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/senderkit-com-openapi.yaml#/components/schemas/InboundDomain",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Inbound domain ID (the row's UUID — there is no separate public id)."
    },
    "domain": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "shared",
        "custom"
      ],
      "description": "`shared` is the workspace's auto-provisioned\n`{slug}.in.senderkit.email` domain, which needs no DNS of its own.\n`custom` is a domain you claimed and must verify by publishing\n`records`.\n"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "verified",
        "failed"
      ]
    },
    "records": {
      "type": "array",
      "description": "DNS records to publish for this domain to verify. Always empty\nfor `shared` domains — the wildcard MX on the shared domain\nalready covers them.\n",
      "items": {
        "type": "object",
        "required": [
          "type",
          "name",
          "value",
          "purpose",
          "check"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "TXT",
              "MX"
            ]
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "description": "Present on `MX` records."
          },
          "purpose": {
            "type": "string",
            "description": "Human-readable explanation of what this record does."
          },
          "check": {
            "type": "string",
            "enum": [
              "dkim",
              "inboundMx"
            ],
            "description": "Identifies which mechanism confirms this record is correctly\npublished. For `dkim` records, confirmation comes from the\ndomain's SES identity verification status. For `inboundMx`\nrecords, confirmation comes from a live DNS lookup that finds\nthe MX already pointing at SenderKit's receiving endpoint.\n"
          }
        }
      }
    },
    "verifiedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}