{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-payload-encryption-settings-request-schema.json",
  "title": "PayloadEncryptionSettingsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-settings-api-openapi.yml#/components/schemas/PayloadEncryptionSettingsRequest",
  "type": "object",
  "properties": {
    "payload_encryption": {
      "$ref": "#/$defs/PayloadEncryptionSettings"
    }
  },
  "required": [
    "payload_encryption"
  ],
  "$defs": {
    "PayloadEncryptionSettings": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ],
          "description": "Enable or disable payload encryption"
        },
        "client_encryption_key": {
          "type": "string",
          "description": "Base64-encoded public key for payload encryption\n(required when enabling encryption)\n"
        }
      },
      "required": [
        "status"
      ]
    }
  }
}