{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/multimail-dev/json-schema/multimail-dev-email-response-schema.json",
  "title": "EmailResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/multimail-dev-openapi.yml#/components/schemas/EmailResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "subject": {
      "type": "string"
    },
    "received_at": {
      "type": "string",
      "format": "date-time"
    },
    "thread_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "markdown": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "unread",
        "read",
        "archived",
        "deleted",
        "pending_send_approval",
        "pending_inbound_approval",
        "rejected",
        "cancelled",
        "sending",
        "send_failed",
        "scheduled",
        "spam_flagged",
        "spam_quarantined"
      ]
    },
    "has_attachments": {
      "type": "boolean"
    },
    "attachments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "content_type": {
            "type": "string"
          }
        }
      }
    },
    "delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "bounced_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "bounce_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "approved_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "approved_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "spam_score": {
      "type": [
        "integer",
        "null"
      ]
    },
    "spam_verdict": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "clean",
        "flagged",
        "quarantined"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}