{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-self-service-summary-generate-request-schema.json",
  "title": "SelfServiceSummaryGenerateRequest",
  "description": "Request to generate a self-service summary for an interaction.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-realtimeinsights-openapi.yml#/components/schemas/SelfServiceSummaryGenerateRequest",
  "required": [
    "contactNumber",
    "maxWords",
    "timeStamp"
  ],
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": [
        "string",
        "null"
      ],
      "description": "Schema version of the request payload."
    },
    "timeStamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "Client timestamp of the request, in ISO 8601 format (UTC).",
      "format": "date-time"
    },
    "tenantId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Tenant identifier. Required for service-token callers; taken from the token for user-token callers."
    },
    "busNumber": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Business unit number.",
      "format": "int32"
    },
    "contactNumber": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Unique identifier of the contact/interaction to summarize.",
      "format": "int64"
    },
    "maxWords": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Maximum number of words for the generated summary.",
      "format": "int32"
    },
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "Language for the generated summary (BCP-47 code)."
    },
    "instructions": {
      "type": [
        "string",
        "null"
      ],
      "description": "Additional instructions to steer summary generation."
    }
  },
  "additionalProperties": false
}