ChangeEventMessage

Structure of a change data capture event message. Note that events are delivered via CometD streaming or Pub/Sub API, not REST. This schema documents the message format for reference.

CloudCRMCustomer ManagementEnterpriseSales

Properties

Name Type Description
schema string The Avro schema ID for the event
payload object
event object
View JSON Schema on GitHub

JSON Schema

salesforce-sales-cloud-changeeventmessage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChangeEventMessage",
  "title": "ChangeEventMessage",
  "type": "object",
  "description": "Structure of a change data capture event message. Note that events are delivered via CometD streaming or Pub/Sub API, not REST. This schema documents the message format for reference.",
  "properties": {
    "schema": {
      "type": "string",
      "description": "The Avro schema ID for the event"
    },
    "payload": {
      "type": "object",
      "properties": {
        "ChangeEventHeader": {
          "type": "object",
          "properties": {
            "entityName": {
              "type": "string",
              "description": "The sObject type that was changed"
            },
            "recordIds": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "List of record IDs affected"
            },
            "changeType": {
              "type": "string",
              "description": "The type of change",
              "enum": [
                "CREATE",
                "UPDATE",
                "DELETE",
                "UNDELETE",
                "GAP_CREATE",
                "GAP_UPDATE",
                "GAP_DELETE",
                "GAP_UNDELETE",
                "GAP_OVERFLOW"
              ]
            },
            "changedFields": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "List of field names that were changed (UPDATE only)"
            },
            "changeOrigin": {
              "type": "string"
            },
            "commitTimestamp": {
              "type": "integer",
              "format": "int64",
              "description": "The timestamp of the commit in milliseconds"
            },
            "commitNumber": {
              "type": "integer",
              "format": "int64"
            },
            "commitUser": {
              "type": "string",
              "description": "The ID of the user who made the change"
            },
            "sequenceNumber": {
              "type": "integer"
            },
            "transactionKey": {
              "type": "string",
              "description": "Unique key for the transaction"
            }
          }
        }
      },
      "additionalProperties": true
    },
    "event": {
      "type": "object",
      "properties": {
        "replayId": {
          "type": "integer",
          "description": "The replay ID for resuming event consumption"
        }
      }
    }
  }
}

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/salesforce-sales-cloud-changeeventmessage"
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.