{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-interaction-context-request-schema.json",
  "title": "InteractionContextRequest",
  "description": "API DTO for interaction context requests with nullable properties for defensive programming.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-realtimeinsights-openapi.yml#/components/schemas/InteractionContextRequest",
  "required": [
    "contactNumber",
    "timestamp"
  ],
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gets or sets the schema version of the interaction context."
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gets or sets the timestamp of the request, in ISO 8601 format (UTC).",
      "format": "date-time"
    },
    "contactNumber": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Gets or sets the contact number associated with the interaction.",
      "format": "int64"
    },
    "tenantId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gets or sets the tenant identifier. Required for service-token callers; ignored for user-token callers (value is taken from the token)."
    }
  },
  "additionalProperties": false
}