{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailjunky-ai/json-schema/mailjunky-ai-contact-schema.json",
  "title": "Contact",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailjunky-ai-openapi.json#/components/schemas/Contact",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "first_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "properties": {
      "type": "object",
      "additionalProperties": true
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "unsubscribed",
        "bounced",
        "complained"
      ]
    },
    "emails_sent": {
      "type": "integer"
    },
    "emails_opened": {
      "type": "integer"
    },
    "emails_clicked": {
      "type": "integer"
    },
    "last_email_sent_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_opened_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "unsubscribed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}