{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-reporting-webhook-schema.json",
  "title": "reportingWebhook",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customer-io-reporting-webhooks-api-openapi.yml#/components/schemas/reportingWebhook",
  "x-scalar-ignore": true,
  "type": "object",
  "required": [
    "name",
    "endpoint",
    "events"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of your webhook."
    },
    "id": {
      "type": "integer",
      "description": "The identifier for the webhook.",
      "readOnly": true
    },
    "type": {
      "type": "string",
      "description": "The type of webhook—`webhook` for a standard reporting webhook or `js` for a JavaScript webhook.",
      "enum": [
        "webhook",
        "js"
      ],
      "readOnly": true
    },
    "endpoint": {
      "type": "string",
      "format": "url",
      "description": "The webhook URL."
    },
    "disabled": {
      "type": "boolean",
      "description": "Set to `true` to quit sending events to the webhook URL. Set to `false` to enable the webhook."
    },
    "full_resolution": {
      "type": "boolean",
      "description": "Set to `false` to send unique open and click events to the webhook. Set to `true` to send all events.",
      "default": false
    },
    "with_content": {
      "type": "boolean",
      "description": "Set to `true` to include the message `body` in `_sent` events."
    },
    "events": {
      "description": "Specifies the types of events you want to report to your webhook. See our [reporting webhooks reference](/integrations/api/webhooks/) for more information about event types and the information they return.",
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "enum": [
          "customer_subscribed",
          "customer_unsubscribed",
          "customer_subscription_preferences_changed",
          "email_drafted",
          "email_attempted",
          "email_sent",
          "email_delivered",
          "email_opened",
          "email_clicked",
          "email_converted",
          "email_bounced",
          "email_dropped",
          "email_deferred",
          "email_spammed",
          "email_failed",
          "email_unsubscribed",
          "email_undeliverable",
          "in_app_drafted",
          "in_app_attempted",
          "in_app_sent",
          "in_app_opened",
          "in_app_clicked",
          "in_app_converted",
          "in_app_failed",
          "in_app_undeliverable",
          "push_drafted",
          "push_attempted",
          "push_sent",
          "push_delivered",
          "push_opened",
          "push_clicked",
          "push_converted",
          "push_bounced",
          "push_dropped",
          "push_failed",
          "push_undeliverable",
          "slack_drafted",
          "slack_attempted",
          "slack_sent",
          "slack_clicked",
          "slack_converted",
          "slack_failed",
          "sms_drafted",
          "sms_attempted",
          "sms_sent",
          "sms_delivered",
          "sms_clicked",
          "sms_converted",
          "sms_bounced",
          "sms_dropped",
          "sms_failed",
          "sms_undeliverable",
          "sms_replied",
          "whatsapp_drafted",
          "whatsapp_attempted",
          "whatsapp_sent",
          "whatsapp_delivered",
          "whatsapp_opened",
          "whatsapp_clicked",
          "whatsapp_converted",
          "whatsapp_bounced",
          "whatsapp_dropped",
          "whatsapp_failed",
          "whatsapp_undeliverable",
          "whatsapp_replied",
          "webhook_drafted",
          "webhook_attempted",
          "webhook_sent",
          "webhook_clicked",
          "webhook_converted",
          "webhook_failed",
          "webhook_undeliverable"
        ]
      }
    }
  }
}