{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modoboa/json-schema/modoboa-mailbox-schema.json",
  "title": "Mailbox",
  "description": "Base mailbox serializer.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modoboa-mailboxes-api-openapi.yml#/components/schemas/Mailbox",
  "type": "object",
  "properties": {
    "pk": {
      "type": "integer",
      "readOnly": true,
      "title": "ID"
    },
    "full_address": {
      "type": "string",
      "format": "email"
    },
    "use_domain_quota": {
      "type": "boolean"
    },
    "quota": {
      "type": "string"
    },
    "message_limit": {
      "type": [
        "integer",
        "null"
      ],
      "maximum": 9223372036854775807,
      "minimum": 0,
      "format": "int64",
      "title": "Message sending limit",
      "description": "Number of messages this mailbox can send per day"
    },
    "quota_usage": {
      "type": "integer",
      "readOnly": true
    },
    "is_send_only": {
      "type": "boolean"
    },
    "sent_messages_in_percent": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Return number of sent messages as a percentage.",
      "readOnly": true
    }
  },
  "required": [
    "full_address",
    "pk",
    "quota_usage",
    "sent_messages_in_percent"
  ]
}