{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-opt-out-request-schema.json",
  "title": "OptOutRequest",
  "description": "An opt out request.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-communication-services-sms-api-openapi.yml#/components/schemas/OptOutRequest",
  "required": [
    "from",
    "recipients"
  ],
  "type": "object",
  "properties": {
    "from": {
      "description": "The sender's identifier (typically phone number in E.164 format) that is owned by the authenticated account.",
      "minLength": 1,
      "type": "string"
    },
    "recipients": {
      "maxItems": 100,
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/OptOutRecipient"
      }
    }
  },
  "$defs": {
    "OptOutRecipient": {
      "description": "A single opt out recipient number.",
      "required": [
        "to"
      ],
      "type": "object",
      "properties": {
        "to": {
          "description": "The recipient's phone number (in E.164 format).",
          "minLength": 1,
          "type": "string"
        }
      }
    }
  }
}