{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emailconnect/main/json-schema/emailconnect-alias-schema.json",
  "title": "Alias",
  "x-generated": "2026-10-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emailconnect-openapi.json#/components/schemas/Alias",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "email": {
      "type": "string",
      "description": "Full email address or catch-all pattern (*@domain.com)"
    },
    "active": {
      "type": "boolean"
    },
    "domainId": {
      "type": "string"
    },
    "webhookId": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "configuration": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "allowAttachments": {
          "type": "boolean"
        },
        "includeEnvelope": {
          "type": "boolean"
        },
        "includeHtml": {
          "type": "boolean"
        },
        "includeText": {
          "type": "boolean"
        },
        "includeLinks": {
          "type": "boolean"
        },
        "attachmentHandling": {
          "type": "string",
          "enum": [
            "inline",
            "storage"
          ]
        },
        "s3Folder": {
          "type": "string"
        }
      }
    },
    "domain": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        }
      }
    },
    "webhook": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        },
        "hasSecret": {
          "type": "boolean"
        }
      }
    }
  },
  "required": [
    "id",
    "email",
    "active",
    "domainId",
    "webhookId"
  ]
}