{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/multimail-dev/json-schema/multimail-dev-mailbox-schema.json",
  "title": "Mailbox",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/multimail-dev-openapi.yml#/components/schemas/Mailbox",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "tenant_id": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "oversight_mode": {
      "type": "string"
    },
    "auto_cc": {
      "type": [
        "string",
        "null"
      ]
    },
    "auto_bcc": {
      "type": [
        "string",
        "null"
      ]
    },
    "forward_inbound": {
      "type": "integer"
    },
    "webhook_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "oversight_webhook_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "signature_block": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "integer",
      "description": "Epoch ms"
    },
    "is_active": {
      "type": "integer"
    },
    "default_gate_timing": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "gate_first",
        "schedule_first"
      ],
      "description": "Default approval timing for scheduled sends: gate_first approves before scheduling, schedule_first schedules then approves at delivery."
    },
    "scheduling_enabled": {
      "type": "integer",
      "description": "1 if send_at scheduling is enabled for this mailbox"
    },
    "mcp_configured": {
      "type": "integer",
      "description": "1 once an MCP client has been configured for this mailbox (guided-setup progress flag)"
    },
    "ai_disclosure": {
      "type": "integer",
      "description": "Always 1 — every agent-originated email carries the AI disclosure (signed ai_generated claim, X-AI-Generated header, visible footer line). Gateway-enforced per EU AI Act Article 50; cannot be disabled."
    }
  }
}