{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-optout-channels-schema.json",
  "title": "optoutChannels",
  "description": "The senders and channels that the person is opted out of. An entry's presence means the person is opted out of that sender on that channel.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customer-io-opt-outs-api-openapi.yml#/components/schemas/optoutChannels",
  "x-scalar-ignore": true,
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "channel": {
        "type": "string",
        "description": "The channel that the person is opted out of.",
        "enum": [
          "sms",
          "whatsapp"
        ]
      },
      "from": {
        "type": "string",
        "description": "The sender that the person is opted out of. For SMS, this is a sender phone number (E.164), an alphanumeric sender ID, or a messaging-service SID; for WhatsApp, it's the sender phone number."
      }
    }
  }
}