{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/webex/main/json-schema/webex-call-history-record-schema.json",
  "title": "CallHistoryRecord",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-call-controls-api-openapi.yml#/components/schemas/CallHistoryRecord",
  "type": "object",
  "required": [
    "type",
    "privacyEnabled",
    "time"
  ],
  "properties": {
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/CallHistoryRecordTypeEnum"
        }
      ],
      "description": "The type of call history record."
    },
    "name": {
      "type": "string",
      "description": "The name of the called/calling party. Only present when the name is available and privacy is not enabled."
    },
    "number": {
      "type": "string",
      "description": "The number of the called/calling party. Only present when the number is available and privacy is not enabled. The number can be digits or a URI. Some examples for number include: `1234`, `2223334444`, `+12223334444`, `*73`, `user@company.domain`"
    },
    "privacyEnabled": {
      "type": "boolean",
      "description": "Indicates whether privacy is enabled for the name and number."
    },
    "time": {
      "type": "string",
      "description": "The date and time the call history record was created. For a placed call history record, this is when the call was placed. For a missed call history record, this is when the call was disconnected. For a received call history record, this is when the call was answered."
    }
  },
  "$defs": {
    "CallHistoryRecordTypeEnum": {
      "type": "string",
      "enum": [
        "placed",
        "missed",
        "received"
      ],
      "description": " * `placed` - A call history record for an outgoing call placed by the user.\n * `missed` - A call history record for an incoming call to the user that was not answered.\n * `received` - A call history record for an incoming call to the user that was answered.\n"
    }
  }
}