{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-control-hub/json-schema/cisco-control-hub-event-schema.json",
  "title": "Event",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-control-hub-webex-admin-openapi.yml#/components/schemas/Event",
  "type": "object",
  "required": [
    "id",
    "resource",
    "type",
    "actorId",
    "orgId",
    "created",
    "data"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the event."
    },
    "resource": {
      "allOf": [
        {
          "$ref": "#/$defs/EventResourceEnum"
        }
      ],
      "description": "The type of resource in the event."
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/EventTypeEnum"
        }
      ],
      "description": "The action which took place in the event."
    },
    "appId": {
      "type": "string",
      "description": "The ID of the application for the event."
    },
    "actorId": {
      "type": "string",
      "description": "The ID of the person who performed the action."
    },
    "orgId": {
      "type": "string",
      "description": "The ID of the organization for the event."
    },
    "created": {
      "type": "string",
      "description": "The date and time of the event."
    },
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "roomId": {
          "type": "string"
        },
        "roomType": {
          "type": "string"
        },
        "orgId": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "personId": {
          "type": "string"
        },
        "personEmail": {
          "type": "string"
        },
        "meetingId": {
          "type": "string"
        },
        "creatorId": {
          "type": "string"
        },
        "host": {
          "type": "object",
          "properties": {},
          "description": "The meeting's host data."
        },
        "attendees": {
          "type": "array",
          "items": {},
          "description": "Common Identity (CI) authenticated meeting attendees."
        },
        "transcriptionEnabled": {
          "type": "string",
          "description": "Indicates whether or not the Voice Assistant was enabled during the meeting. If `true` a transcript should be available a couple minutes after the meeting ended at the [meetingTranscripts resource](/docs/api/v1/meeting-transcripts)."
        },
        "recordingEnabled": {
          "type": "string",
          "description": "Indicates if recording was enabled for all or parts of the meeting. If `true` a recording should be available shortly after the meeting ended at the [recordings resource](/docs/api/v1/recordings)."
        },
        "hasPostMeetingsChat": {
          "type": "string",
          "description": "Indicates if chat messages were exchanged during the meeting in the meetings client (not the unified client). If `true` these messages can be accessed by a compliance officer at the [postMeetingsChat](/docs/api/v1/meetings-chat) resource. Meetings chat collection must be custom enabled."
        },
        "corelationId": {
          "type": "string",
          "description": "Telephony; The corelation id."
        },
        "callType": {
          "type": "string",
          "description": "Telephony; call types (examples `VIDEO_DIALIN`,`VIDEO_DIALOUT`,`CASCADE`,`HYBRID_CASCADE`,`PSTN_SIP`,`PSTN_DIALIN`,`PSTN_DIALOUT`,`PSTN_ONLY_DIALIN`,`PSTN_ONLY_DIALOUT`,`H323`,`H323_IP`,`SIP_ENTERPRISE`,`SIP_MOBILE`,`SIP_NATIONAL`,`SIP_INTERNATIONAL`,`SIP_EMERGENCY`,`SIP_OPERATOR`,`SIP_SHORTCODE`,`SIP_TOLLFREE`,`SIP_PREMIUM`,`SIP_URI`,`SIP_INBOUND`,`UNKNOWN`,`ZTM`,`SIP_MEETING`)."
        },
        "userId": {
          "type": "string",
          "description": "Telephony; user id of the CDR owner."
        },
        "userType": {
          "type": "string",
          "description": "Telephony; The type of user (`User`,`Anchor`,`AutomatedAttendantBasic`,`AutomatedAttendantStandard`,`AutomatedAttendantVideo`,`BroadworksAnywhere`,`CallCenterBasic`,`CallCenterPremium`,`CallCenterStandard`,`CollaborateBridge`,`ContactCenterAdaptor`,`FindMeFollowMe`,`FlexibleSeatingHost`,`GroupCall`,`GroupPaging`,`HuntGroup`,`LocalGateway`,`MeetMeConference`,`Place`,`RoutePoint`,`SystemVoicePortal`,`VoiceMailGroup`,`VoiceMailRetrieval`,`VoiceXML`,`VirtualLine`,`Unknown`)."
        },
        "callDirection": {
          "type": "string",
          "description": "Telephony; `ORIGINATING` or `TERMINATING`."
        },
        "isCallAnswered": {
          "type": "string",
          "description": "Telephony; indicates if the call was answered."
        },
        "callDurationSeconds": {
          "type": "string",
          "description": "Telephony; duration of call in seconds."
        },
        "callStartTime": {
          "type": "string",
          "description": "Telephony; ISO 8601."
        },
        "callAnswerTime": {
          "type": "string",
          "description": "Telephony; ISO 8601."
        },
        "callTransferTime": {
          "type": "string",
          "description": "Telephony; ISO 8601."
        },
        "callingNumber": {
          "type": "string",
          "description": "Telephony; originating number."
        },
        "callingLineId": {
          "type": "string",
          "description": "Telephony."
        },
        "calledNumber": {
          "type": "string",
          "description": "Telephony; destination number."
        },
        "calledLineId": {
          "type": "string",
          "description": "Telephony"
        },
        "dialedDigits": {
          "type": "string",
          "description": "Telephony"
        },
        "callRedirectingNumber": {
          "type": "string",
          "description": "Telephony"
        },
        "callRedirectedReason": {
          "type": "string",
          "description": "Telephony"
        },
        "created": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "Message type `direct` or `group` message."
        },
        "breakoutSessionId": {
          "type": "string",
          "description": "The breakout session Id in cases where the action happened in a meeting's brakout session, for example a `meetingMessage`."
        },
        "recipients": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Recipient"
          },
          "description": "The recipients list for directed meetingMessages."
        }
      },
      "description": "The event's data representation. This object will contain the event's `resource`, such as [memberships](/docs/api/v1/memberships/get-membership-details), [messages](/docs/api/v1/messages/get-message-details), [meetings](/docs/api/v1/meetings), [meetingMessages](/docs/api/v1/meetingMessages), [tabs](/docs/api/v1/room-tabs), [rooms](/docs/api/v1/space-classifications) or [attachmentActions](/docs/api/v1/attachment-actions) at the time the event took place."
    }
  },
  "$defs": {
    "EventResourceEnum": {
      "type": "string",
      "enum": [
        "attachmentActions",
        "businessTexts",
        "call_records",
        "convergedRecordings",
        "file_transcodings",
        "files",
        "meetingMessages",
        "meetings",
        "meetingTranscripts",
        "memberships",
        "messages",
        "rooms",
        "tabs"
      ],
      "description": " * `attachmentActions` - State changed on a card attachment\n * `businessTexts` - A user sent or received a SMS message\n * `call_records` - A Webex call was made to/from a user\n * `convergedRecordings` - A Webex call was recorded for a user\n * `file_transcodings` - State change on a file preview\n * `files` - State changed on a file download\n * `meetingMessages` - State changed on a meeting message, i.e. message exchanged as part of a meeting\n * `meetings` - State change on a meeting ( here combined with type = 'ended' )\n * `meetingTranscripts` - State change on a automatic transcript resource for Webex Assistant\n * `memberships` - State changed on a memberships resource\n * `messages` - State changed on a messages resource\n * `rooms` - State changed on a space classification\n * `tabs` - State changed on a room tabs in a space\n"
    },
    "EventTypeEnum": {
      "type": "string",
      "enum": [
        "created",
        "updated",
        "deleted",
        "ended"
      ],
      "description": " * `created` - The resource has been created\n * `updated` - A property on the resource has been updated\n * `deleted` - The resource has been deleted\n * `ended` - The meeting has ended\n"
    },
    "Recipient": {
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "description": "The personId of the recipient"
        },
        "personEmail": {
          "type": "string",
          "description": "The personEmail"
        },
        "guestDisplayName": {
          "type": "string",
          "description": "Guests, who are unauthenticated users, have a guestDisplayName"
        },
        "guestEmail": {
          "type": "string",
          "description": "Guests, who are unauthenticated users, have a guestEmail"
        }
      }
    }
  }
}