{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendmux-ai/json-schema/sendmux-ai-domain-item-cursor-list-response-schema.json",
  "title": "DomainItemCursorListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendmux-ai-domains-api-openapi.yml#/components/schemas/DomainItemCursorListResponse",
  "allOf": [
    {
      "$ref": "#/$defs/SuccessEnvelope"
    },
    {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/$defs/MailboxDomain"
          },
          "type": "array"
        },
        "meta": {
          "$ref": "#/$defs/ResponseMeta"
        },
        "pagination": {
          "$ref": "#/$defs/CursorPagination"
        }
      },
      "required": [
        "data",
        "pagination"
      ],
      "type": "object"
    }
  ],
  "unevaluatedProperties": false,
  "$defs": {
    "CursorPagination": {
      "additionalProperties": false,
      "properties": {
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": "string"
        }
      },
      "required": [
        "has_more"
      ],
      "type": "object"
    },
    "MailboxDomain": {
      "additionalProperties": false,
      "properties": {
        "created_at": {
          "description": "ISO 8601 creation timestamp",
          "type": "string"
        },
        "dns_records": {
          "$ref": "#/$defs/MailboxDomainDnsRecords"
        },
        "domain": {
          "description": "Fully qualified domain name",
          "type": "string"
        },
        "id": {
          "description": "Public ID",
          "type": "string"
        },
        "mailbox_count": {
          "description": "Active mailboxes currently using this domain",
          "minimum": 0,
          "type": "integer"
        },
        "mode": {
          "description": "`send_only` verifies outbound DNS only. `send_receive` also verifies MX records and can host mailboxes.",
          "enum": [
            "send_only",
            "send_receive"
          ],
          "type": "string"
        },
        "ses_dkim_signing_enabled": {
          "description": "Whether Amazon SES DKIM signing is currently enabled for this identity",
          "type": [
            "boolean",
            "null"
          ]
        },
        "ses_dkim_status": {
          "description": "Amazon SES DKIM status (pending/success/failed/temporary_failure/not_started)",
          "type": [
            "string",
            "null"
          ]
        },
        "ses_identity_checked_at": {
          "description": "ISO 8601 timestamp of the latest complete Amazon SES identity check",
          "type": [
            "string",
            "null"
          ]
        },
        "ses_identity_verification_status": {
          "description": "Latest Amazon SES identity verification status",
          "type": [
            "string",
            "null"
          ]
        },
        "ses_mail_from_status": {
          "description": "Amazon SES MAIL FROM status (pending/success/failed/temporary_failure/not_started)",
          "type": [
            "string",
            "null"
          ]
        },
        "ses_verified_for_sending": {
          "description": "Whether Amazon SES currently permits sending for this identity",
          "type": [
            "boolean",
            "null"
          ]
        },
        "verification_status": {
          "description": "Current verification state",
          "enum": [
            "pending",
            "verified",
            "failed"
          ],
          "type": "string"
        },
        "verified_at": {
          "description": "ISO 8601 timestamp of last successful verification",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "domain",
        "mode",
        "verification_status",
        "ses_identity_verification_status",
        "ses_verified_for_sending",
        "ses_dkim_status",
        "ses_dkim_signing_enabled",
        "ses_identity_checked_at",
        "ses_mail_from_status",
        "verified_at",
        "created_at",
        "mailbox_count",
        "dns_records"
      ],
      "type": "object"
    },
    "MailboxDomainDnsRecords": {
      "additionalProperties": false,
      "properties": {
        "dkim": {
          "description": "Three Amazon SES DKIM CNAME records",
          "items": {
            "$ref": "#/$defs/MailboxDomainNameValueRecord"
          },
          "type": "array"
        },
        "dmarc": {
          "allOf": [
            {
              "$ref": "#/$defs/MailboxDomainNameValueRecord"
            },
            {
              "description": "DMARC enforcement record (quarantine, no reporting)"
            }
          ]
        },
        "mail_from": {
          "$ref": "#/$defs/MailboxDomainMailFromRecords"
        },
        "mx": {
          "description": "MX records the customer must place. All point at Sendmux's inbound mail servers.",
          "items": {
            "$ref": "#/$defs/MailboxDomainMxRecord"
          },
          "type": "array"
        },
        "spf": {
          "allOf": [
            {
              "$ref": "#/$defs/MailboxDomainNameValueRecord"
            },
            {
              "description": "SPF TXT record covering Amazon SES sending"
            }
          ]
        },
        "verification": {
          "allOf": [
            {
              "$ref": "#/$defs/MailboxDomainNameValueRecord"
            },
            {
              "description": "Ownership-proof TXT record (Sendmux-specific)"
            }
          ]
        }
      },
      "required": [
        "mx",
        "mail_from",
        "spf",
        "dmarc",
        "dkim",
        "verification"
      ],
      "type": "object"
    },
    "MailboxDomainMailFromRecords": {
      "additionalProperties": false,
      "description": "Custom MAIL FROM records for Amazon SES bounce handling",
      "properties": {
        "mx": {
          "$ref": "#/$defs/MailboxDomainNamedMxRecord"
        },
        "spf": {
          "$ref": "#/$defs/MailboxDomainNameValueRecord"
        }
      },
      "required": [
        "mx",
        "spf"
      ],
      "type": "object"
    },
    "MailboxDomainMxRecord": {
      "additionalProperties": false,
      "properties": {
        "priority": {
          "type": "integer"
        },
        "target": {
          "type": "string"
        }
      },
      "required": [
        "priority",
        "target"
      ],
      "type": "object"
    },
    "MailboxDomainNameValueRecord": {
      "additionalProperties": false,
      "description": "SPF TXT record for the custom MAIL FROM subdomain",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "type": "object"
    },
    "MailboxDomainNamedMxRecord": {
      "additionalProperties": false,
      "description": "MX record for Amazon SES bounce handling",
      "properties": {
        "name": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "target": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "priority",
        "target"
      ],
      "type": "object"
    },
    "ResponseMeta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "SuccessEnvelope": {
      "properties": {
        "meta": {
          "additionalProperties": {},
          "properties": {},
          "type": "object"
        },
        "ok": {
          "enum": [
            true
          ],
          "type": "boolean"
        }
      },
      "required": [
        "ok",
        "meta"
      ],
      "type": "object"
    }
  }
}