{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recordwirehq-com/json-schema/recordwirehq-com-event-schema.json",
  "title": "Event",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recordwirehq-com-openapi.json#/components/schemas/Event",
  "type": "object",
  "required": [
    "id",
    "type",
    "entity_id",
    "effective_at",
    "observed_at",
    "payload"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Numeric, increasing. Use with `after`."
    },
    "type": {
      "type": "string",
      "enum": [
        "business.created",
        "business.name_changed",
        "business.status_changed",
        "business.address_changed",
        "business.agent_changed",
        "business.officers_changed"
      ]
    },
    "entity_id": {
      "type": "string"
    },
    "effective_at": {
      "type": "string",
      "format": "date",
      "description": "When the state says it happened."
    },
    "observed_at": {
      "type": "string",
      "format": "date",
      "description": "When Recordwire recorded it."
    },
    "payload": {
      "description": "The change. Shapes per type: https://recordwirehq.com/docs"
    }
  }
}