{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-contact-active-schema.json",
  "title": "contactActive",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-reporting-reporting-openapi.yml#/components/schemas/contactActive",
  "type": "object",
  "properties": {
    "businessUnitId": {
      "type": "integer",
      "description": "ID of Business Unit"
    },
    "lastPollTime": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp of last database poll based on the UTC time zone."
    },
    "contactId": {
      "type": "object",
      "properties": {
        "agentId": {
          "type": "integer",
          "format": "int64",
          "description": "This is a unique, system-generated ID assigned to each Agent."
        },
        "agentStartDate": {
          "type": "string",
          "format": "date-time",
          "description": "It is the start of the agent session according to the status of the contact. It must be in ISO 8601 format based on the UTC time zone."
        },
        "campaignId": {
          "type": "integer",
          "description": "The unique, system-generated ID assigned to the campaign."
        },
        "campaignName": {
          "type": "string",
          "description": "The name of the Campaign for the Contact."
        },
        "contactId": {
          "type": "integer",
          "format": "int64",
          "description": "The unique, system-generated ID of the Contact interaction. Contact ID denotes a \\\"child\\\" Contact ID that is an offspring of a Master/Parent Contact ID."
        },
        "contactStartDate": {
          "type": "integer",
          "format": "date-time",
          "description": "The ISO 8601 formatted start time of the Contact, based on the UTC time zone."
        },
        "contactStateCategory": {
          "type": "string",
          "description": "Contact State:\n  - PreQueue\n  - InQueue\n  - Agent\n  - PostQueue\n  - Release"
        },
        "digitalContactStateId": {
          "type": "integer",
          "description": "Digital Contact State ID."
        },
        "digitalContactStateName": {
          "type": "string",
          "description": "Digital contact state name"
        },
        "fileName": {
          "type": "string",
          "description": "Name of file associated with Contact"
        },
        "firstName": {
          "type": "string",
          "description": "First name associated with a prospective contact ID record. If the interaction did not include any connection , the value is null."
        },
        "fromAddress": {
          "type": "string",
          "description": "Default the DNI, email, or chat address of the source Contact. For non interactions, the value is null."
        },
        "highProficiency": {
          "type": "integer",
          "description": "The bottom value identified for the bullseye range of the contact."
        },
        "holdCount": {
          "type": "integer",
          "description": "The number of times Contact was on hold."
        },
        "isLogged": {
          "type": "boolean",
          "description": "True or False, indicates if the Contact was logged."
        },
        "isOutbound": {
          "type": "boolean",
          "description": "True or False, Indicates if active Contact is using an outbound"
        },
        "isTakeover": {
          "type": "boolean",
          "description": "True or False, indicates whether the Contact was taken over by a supervisor (true) or not taken over by a supervisor (false)."
        },
        "lastName": {
          "type": "string",
          "description": "Last name associated with a prospective contact ID record. If the interaction did not include any connection , the value is null."
        },
        "lastUpdateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time of last record update. It must be in ISO 8601 format based on the UTC time zone."
        },
        "lowProficiency": {
          "type": "integer",
          "description": "The top value identified for the bullseye range of the contact."
        },
        "masterContactId": {
          "type": "integer",
          "format": "int64",
          "description": "ID of the source Contact associated with this Contact."
        },
        "mediaSubTypeId": {
          "type": "integer",
          "description": "ID of digital types of channels"
        },
        "mediaSubTypeName": {
          "type": "string",
          "description": "List of Name of digital channel types such as Facebook, Apple Business Chat or WhatsApp."
        },
        "mediaTypeId": {
          "type": "integer",
          "description": "The numeric ID of the Media Type. It will be one of the following values= 1, 2, 3, 4, 5, 6, 7, 8, 9."
        },
        "mediaTypeName": {
          "type": "string",
          "description": "The name of the Media Type.\n  It will be one of the following values:\n  - 1 = Email\n  - 2 = FAX\n  - 3 = Chat\n  - 4 = Phone Call\n  - 5 = Voice Mail\n  - 6 = Work Item\n  - 7 = SMS\n  - 8 = Social\n  - 9 = Digital."
        },
        "pointOfContactId": {
          "type": "integer",
          "description": "ID of the Point of Contact"
        },
        "pointOfContactName": {
          "type": "string",
          "description": "The name of Point of Contact."
        },
        "routingAttribute": {
          "type": "integer",
          "description": "The specific Routing Attribute assigned to the contact."
        },
        "skillId": {
          "type": "integer",
          "description": "The unique system-generated ID of the skill Agent is working on."
        },
        "skillName": {
          "type": "string",
          "description": "The text description of the skill. It displays the name assigned to the skill."
        },
        "stateId": {
          "type": "integer",
          "description": "The number corresponding to the final state that the Contact held."
        },
        "stateName": {
          "type": "string",
          "description": "Name of the contact state"
        },
        "targetAgentId": {
          "type": "integer",
          "description": "ID of the Agent the Contact was targetted to. May not be the same as agentId"
        },
        "teamId": {
          "type": "integer",
          "description": "The unique, system-generated ID assigned to each Team."
        },
        "teamName": {
          "type": "string",
          "description": "Name of Agent Team."
        },
        "toAddress": {
          "type": "string",
          "description": "The DNIS, email, or chat address of the destination Contact. For non interactions, the value is null."
        },
        "transferIndicatorId": {
          "type": "integer",
          "description": "The numeric ID of the transferred. It will be one of the following values= 0, 1, 2, 3, 4, 5"
        },
        "transferIndicatorName": {
          "type": "string",
          "description": "The number indicating if and how the contact was transferred:\n  - 0 = Original Contact (&quot;None&quot;) or Consult and Connect\n  - 1 = ReSkill\n  - 2 = ReAgent\n  - 3 = Consult\n  - 4 = TakeOver\n  - 5 = Elevated"
        },
        "divisionNo": {
          "type": "number",
          "description": "The DivisionNo for a particular tenant"
        }
      }
    }
  }
}