{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mail-in-a-box/json-schema/mail-in-a-box-me-response-schema.json",
  "title": "MeResponse",
  "description": "Me (user) response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mail-in-a-box-user-api-openapi.yml#/components/schemas/MeResponse",
  "type": "object",
  "required": [
    "status"
  ],
  "properties": {
    "api_key": {
      "type": "string"
    },
    "email": {
      "$ref": "#/$defs/Email"
    },
    "privileges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MailUserPrivilege"
      }
    },
    "reason": {
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/MeAuthStatus"
    }
  },
  "$defs": {
    "Email": {
      "type": "string",
      "format": "email",
      "description": "Email format."
    },
    "MailUserPrivilege": {
      "type": "string",
      "enum": [
        "admin",
        ""
      ],
      "description": "Mail user privilege."
    },
    "MeAuthStatus": {
      "type": "string",
      "enum": [
        "ok",
        "invalid"
      ],
      "description": "Me (user) authentication result."
    }
  }
}