{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-mxplan-account-schema.json",
  "title": "email.mxplan.Account",
  "description": "Mailbox",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-mxplan-openapi.yml#/components/schemas/email.mxplan.Account",
  "type": "object",
  "properties": {
    "SAMAccountName": {
      "type": [
        "string",
        "null"
      ],
      "description": "SAM account name",
      "readOnly": true
    },
    "configured": {
      "type": "boolean",
      "description": "Indicates if the account is configured",
      "readOnly": true
    },
    "creationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "currentUsage": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Mailbox usage",
      "readOnly": true
    },
    "deleteAtExpiration": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "delete at expiration"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Account display name"
    },
    "domain": {
      "type": "string",
      "description": "Email domain"
    },
    "expirationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "expiration date",
      "format": "date-time",
      "readOnly": true
    },
    "expirationOutlookDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "expiration date",
      "format": "date-time",
      "readOnly": true
    },
    "firstName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Account first name"
    },
    "hiddenFromGAL": {
      "type": "boolean",
      "description": "Hide account in Global Address List"
    },
    "id": {
      "type": "integer",
      "description": "Account id",
      "readOnly": true
    },
    "initial": {
      "type": [
        "string",
        "null"
      ],
      "description": "Account initials"
    },
    "lastLogoffDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Last logoff",
      "format": "date-time",
      "readOnly": true
    },
    "lastLogonDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Last logon",
      "format": "date-time",
      "readOnly": true
    },
    "lastName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Account last name"
    },
    "lastUpdateDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Last update",
      "format": "date-time",
      "readOnly": true
    },
    "login": {
      "type": "string",
      "description": "Account login"
    },
    "mailingFilter": {
      "type": [
        "array",
        "null"
      ],
      "description": "Enable or disable anti-virus and anti-spam",
      "items": {
        "$ref": "#/$defs/email.pro.MailingFilterEnum"
      }
    },
    "passwordLastUpdate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Time of account's password last update",
      "format": "date-time",
      "readOnly": true
    },
    "primaryEmailAddress": {
      "type": "string",
      "description": "Default email for this mailbox",
      "readOnly": true
    },
    "quota": {
      "type": "number",
      "description": "Account maximum size"
    },
    "renewPeriod": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.renewPeriodEnum"
        }
      ],
      "description": "change the renew period",
      "nullable": true
    },
    "spamAndVirusConfiguration": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.spamAndVirusConfiguration"
        }
      ],
      "description": "Spam and Antivirus configuration"
    },
    "spamDetected": {
      "type": "boolean",
      "description": "Account was sending spam",
      "readOnly": true
    },
    "spamTicketNumber": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Ticket number of spam detection",
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.ObjectStateEnum"
        }
      ],
      "description": "Account state",
      "readOnly": true
    },
    "taskPendingId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Pending tasks for this account",
      "readOnly": true
    }
  },
  "$defs": {
    "email.pro.MailingFilterEnum": {
      "type": "string",
      "description": "Mailing filter options availlable",
      "enum": [
        "vaderetro"
      ]
    },
    "email.pro.ObjectStateEnum": {
      "type": "string",
      "description": "Current object state",
      "enum": [
        "creating",
        "deleting",
        "ok",
        "reopening",
        "suspended",
        "suspending",
        "unknown"
      ]
    },
    "email.pro.renewPeriodEnum": {
      "type": "string",
      "description": "Renew period",
      "enum": [
        "monthly",
        "yearly"
      ]
    },
    "email.pro.spamAndVirusConfiguration": {
      "type": "object",
      "description": "Spam and Antyvirus configuration",
      "properties": {
        "checkDKIM": {
          "type": "boolean",
          "description": "Check DKIM of message"
        },
        "checkSPF": {
          "type": "boolean",
          "description": "Check SPF of message"
        },
        "deleteSpam": {
          "type": "boolean",
          "description": "If message is a spam delete it"
        },
        "deleteVirus": {
          "type": "boolean",
          "description": "If message is a virus delete it"
        },
        "putInJunk": {
          "type": "boolean",
          "description": "If message is a spam or virus put in junk. Overridden by deleteSpam or deleteVirus"
        },
        "tagSpam": {
          "type": "boolean",
          "description": "If message is a spam change its subject"
        },
        "tagVirus": {
          "type": "boolean",
          "description": "If message is a virus change its subject"
        }
      }
    }
  }
}