{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/senders-ai/json-schema/senders-ai-mailbox-schema.json",
  "title": "Mailbox",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/senders-ai-openapi.json#/components/schemas/Mailbox",
  "type": "object",
  "required": [
    "id",
    "email",
    "status"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "warming",
        "active",
        "paused",
        "disconnected"
      ]
    },
    "role": {
      "type": "string",
      "enum": [
        "primary",
        "backup"
      ]
    },
    "provider": {
      "type": "string",
      "enum": [
        "imap",
        "gmail",
        "outlook",
        "unipile",
        "nylas",
        "smtp"
      ]
    },
    "connection": {
      "type": "string",
      "enum": [
        "ok",
        "auth_failed"
      ]
    },
    "daily_limit": {
      "type": "integer"
    },
    "target_daily_limit": {
      "type": "integer"
    },
    "warmup_day": {
      "type": "integer"
    },
    "warming_external": {
      "type": "boolean"
    },
    "send_interval_minutes": {
      "type": "integer"
    },
    "activated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "ISO 8601, UTC"
    },
    "last_reply_check_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "ISO 8601, UTC"
    },
    "sent_7d": {
      "type": "integer"
    },
    "bounced_7d": {
      "type": "integer"
    },
    "bounce_rate_7d": {
      "type": [
        "number",
        "null"
      ]
    },
    "health": {
      "type": "string",
      "enum": [
        "good",
        "warning",
        "critical"
      ]
    }
  }
}