Customer.io · Schema

Customer.io Reporting Webhook Payload

The payload format for Customer.io reporting webhook events. These events are sent via HTTP POST to your configured webhook endpoint when message activity occurs, such as sends, deliveries, opens, clicks, and bounces.

Behavioral DataBroadcastsCampaignsCDPCustomer DataCustomer Data PlatformData IngestionEmailEvent TrackingMarketing AutomationMessagingPush NotificationsSegmentsSMSTransactional Email

Properties

Name Type Description
event_id string A unique identifier for this webhook event, used for deduplication.
metric string The type of message activity that triggered this webhook event.
timestamp integer A UNIX timestamp of when the event occurred.
data object
View JSON Schema on GitHub

JSON Schema

customer-io-webhook-payload-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://customer.io/schemas/customer-io/webhook-payload.json",
  "title": "Customer.io Reporting Webhook Payload",
  "description": "The payload format for Customer.io reporting webhook events. These events are sent via HTTP POST to your configured webhook endpoint when message activity occurs, such as sends, deliveries, opens, clicks, and bounces.",
  "type": "object",
  "required": ["event_id", "metric", "timestamp"],
  "properties": {
    "event_id": {
      "type": "string",
      "description": "A unique identifier for this webhook event, used for deduplication."
    },
    "metric": {
      "type": "string",
      "description": "The type of message activity that triggered this webhook event.",
      "enum": [
        "sent",
        "delivered",
        "opened",
        "clicked",
        "bounced",
        "spammed",
        "dropped",
        "unsubscribed",
        "converted",
        "failed"
      ]
    },
    "timestamp": {
      "type": "integer",
      "description": "A UNIX timestamp of when the event occurred."
    },
    "data": {
      "$ref": "#/$defs/WebhookEventData"
    }
  },
  "$defs": {
    "WebhookEventData": {
      "type": "object",
      "description": "Detailed data about the message activity event.",
      "properties": {
        "customer_id": {
          "type": "string",
          "description": "The identifier of the customer who received the message."
        },
        "email_address": {
          "type": "string",
          "format": "email",
          "description": "The email address the message was sent to."
        },
        "delivery_id": {
          "type": "string",
          "description": "The unique delivery identifier for the message. Referenced in the X-CIO-Delivery-ID header."
        },
        "action_id": {
          "type": "integer",
          "description": "The campaign action identifier that generated the message."
        },
        "campaign_id": {
          "type": "integer",
          "description": "The campaign identifier that the message belongs to."
        },
        "newsletter_id": {
          "type": "integer",
          "description": "The newsletter identifier, if the message was part of a newsletter."
        },
        "broadcast_id": {
          "type": "integer",
          "description": "The broadcast identifier, if the message was triggered by a broadcast."
        },
        "subject": {
          "type": "string",
          "description": "The email subject line."
        },
        "template_id": {
          "type": "integer",
          "description": "The template identifier used for the message."
        },
        "content_id": {
          "type": "integer",
          "description": "The content variant identifier for A/B test variants."
        },
        "href": {
          "type": "string",
          "format": "uri",
          "description": "The URL that was clicked. Only present for click events."
        },
        "link_id": {
          "type": "integer",
          "description": "The link identifier within the message. Only present for click events."
        },
        "device_id": {
          "type": "string",
          "description": "The device identifier for push notification events."
        },
        "platform": {
          "type": "string",
          "description": "The device platform for push notification events.",
          "enum": ["ios", "android"]
        },
        "from_phone": {
          "type": "string",
          "description": "The sender phone number for SMS events."
        },
        "to_phone": {
          "type": "string",
          "description": "The recipient phone number for SMS events."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/customer-io-webhook-payload"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.