NiCE Insights - Self Service Summary API

: Generate and retrieve self-service summaries for interactions.

GitHub OpenAPI

Operations 2

POST /eai-real-time-insight/v1/self-service-summary Generates a self-service summary for the interaction #
GET /eai-real-time-insight/v1/self-service-summary Retrieves the cached self-service summary for the interaction, if one exists #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nice:nice-insights-self-service-summary-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nice-insights-self-service-summary-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nice Insights - Self Service Summary API
  version: 1.0.0
  description: 'Operations tagged Insights - Self Service Summary across 2 of this provider''s published API definitions: nice-realtimeinsights.json, nice-realtimeinsights-openapi.yml. Each path carries the servers of the definition it was published in.'
security:
- Bearer: []
tags:
- name: Insights - Self Service Summary
  description: ': Generate and retrieve self-service summaries for interactions.'
paths:
  /eai-real-time-insight/v1/self-service-summary:
    post:
      tags:
      - Insights - Self Service Summary
      summary: Generates a self-service summary for the interaction
      description: 'Generates a fresh self-service summary for the interaction using the supplied language and length

        constraints, caches it, and returns the generated summary. Requires a user token.'
      operationId: generateSelfServiceSummary
      requestBody:
        description: 'The generation request: language, max words, and interaction metadata.'
        content:
          application/json; x-api-version=1.0:
            schema:
              required:
              - timeStamp
              - contactNumber
              - maxWords
              allOf:
              - $ref: '#/components/schemas/SelfServiceSummaryGenerateRequest'
              description: Request to generate a self-service summary for an interaction.
          text/json; x-api-version=1.0:
            schema:
              required:
              - timeStamp
              - contactNumber
              - maxWords
              allOf:
              - $ref: '#/components/schemas/SelfServiceSummaryGenerateRequest'
              description: Request to generate a self-service summary for an interaction.
          application/*+json; x-api-version=1.0:
            schema:
              required:
              - timeStamp
              - contactNumber
              - maxWords
              allOf:
              - $ref: '#/components/schemas/SelfServiceSummaryGenerateRequest'
              description: Request to generate a self-service summary for an interaction.
      responses:
        '200':
          description: Returns the generated self-service summary.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/SelfServiceSummaryResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/SelfServiceSummaryResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/SelfServiceSummaryResponse'
        '400':
          description: Validation failed — e.g. missing timeStamp, contactNumber, or maxWords.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing or invalid.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: An unexpected error occurred while generating the summary.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      tags:
      - Insights - Self Service Summary
      summary: Retrieves the cached self-service summary for the interaction, if one exists
      description: 'Returns the previously generated self-service summary for the interaction when one is cached.

        Service-token callers must supply TenantId; for user-token callers it is derived from the token.'
      operationId: getCachedSelfServiceSummary
      requestBody:
        description: The retrieve request (contact metadata; TenantId is required for service tokens).
        content:
          application/json; x-api-version=1.0:
            schema:
              required:
              - timeStamp
              - contactNumber
              allOf:
              - $ref: '#/components/schemas/SelfServiceSummaryRetrieveRequest'
              description: Request to retrieve a cached self-service summary for an interaction.
          text/json; x-api-version=1.0:
            schema:
              required:
              - timeStamp
              - contactNumber
              allOf:
              - $ref: '#/components/schemas/SelfServiceSummaryRetrieveRequest'
              description: Request to retrieve a cached self-service summary for an interaction.
          application/*+json; x-api-version=1.0:
            schema:
              required:
              - timeStamp
              - contactNumber
              allOf:
              - $ref: '#/components/schemas/SelfServiceSummaryRetrieveRequest'
              description: Request to retrieve a cached self-service summary for an interaction.
      responses:
        '200':
          description: Returns the cached self-service summary.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/SelfServiceSummaryResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/SelfServiceSummaryResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/SelfServiceSummaryResponse'
        '400':
          description: Validation failed — e.g. missing timeStamp/contactNumber, or (service-token callers) a missing/invalid TenantId.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing or invalid.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: An unexpected error occurred while retrieving the summary.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SelfServiceSummaryResponse:
      required:
      - selfServiceSummary
      - timeStamp
      type: object
      properties:
        timeStamp:
          type: string
          description: Server timestamp of the response, in ISO 8601 format (UTC).
          format: date-time
          example: '2024-01-01T00:00:05.123Z'
        selfServiceSummary:
          allOf:
          - $ref: '#/components/schemas/SelfServiceSummary'
          description: The self-service summary content.
      additionalProperties: false
      description: Response containing the generated or cached self-service summary for an interaction.
      example:
        timeStamp: '2024-01-01T00:00:05.123Z'
        selfServiceSummary:
          uid: es-9f8e7d6c
          summary: Customer reported a billing discrepancy; issued a refund and confirmed resolution.
    SelfServiceSummaryGenerateRequest:
      required:
      - contactNumber
      - maxWords
      - timeStamp
      type: object
      properties:
        schemaVersion:
          type:
          - string
          - 'null'
          description: Schema version of the request payload.
          example: '1.0'
        timeStamp:
          type:
          - string
          - 'null'
          description: Client timestamp of the request, in ISO 8601 format (UTC).
          format: date-time
          example: '2024-01-01T00:00:00.000Z'
        tenantId:
          type:
          - string
          - 'null'
          description: Tenant identifier. Required for service-token callers; taken from the token for user-token callers.
          example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
        busNumber:
          type:
          - integer
          - 'null'
          description: Business unit number.
          format: int32
          example: 42
        contactNumber:
          type:
          - integer
          - 'null'
          description: Unique identifier of the contact/interaction to summarize.
          format: int64
          example: 1234567890
        maxWords:
          type:
          - integer
          - 'null'
          description: Maximum number of words for the generated summary.
          format: int32
          example: 150
        language:
          type:
          - string
          - 'null'
          description: Language for the generated summary (BCP-47 code).
          example: en-US
        instructions:
          type:
          - string
          - 'null'
          description: Additional instructions to steer summary generation.
          example: Focus on the resolution and any follow-up actions.
      additionalProperties: false
      description: Request to generate a self-service summary for an interaction.
      example:
        schemaVersion: '1.0'
        timeStamp: '2024-01-01T00:00:00.000Z'
        tenantId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
        busNumber: 42
        contactNumber: 1234567890
        maxWords: 150
        language: en-US
        instructions: Focus on the resolution and any follow-up actions.
    DependencyServiceFailure:
      type: object
      properties:
        service:
          type:
          - string
          - 'null'
        httpStatus:
          type: integer
          format: int32
        errorMessages:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
      description: Details of a failure that originated from a downstream dependency.
    ErrorResponse:
      type: object
      properties:
        timestamp:
          type: string
          description: Timestamp when the error occurred (UTC).
          format: date-time
          example: '2024-01-01T00:00:05.123Z'
        errorMessages:
          type:
          - array
          - 'null'
          items:
            type: string
          description: Human-readable error messages describing what went wrong.
        debugInfo: {}
        httpStatusCode:
          type: integer
          format: int32
        dependency:
          allOf:
          - $ref: '#/components/schemas/DependencyServiceFailure'
          description: Details of a failure that originated from a downstream dependency.
      additionalProperties: false
      description: Standard error response returned by the API's exception-handling middleware.
      example:
        timestamp: '2024-01-01T00:00:05.123Z'
    SelfServiceSummaryRetrieveRequest:
      required:
      - contactNumber
      - timeStamp
      type: object
      properties:
        schemaVersion:
          type:
          - string
          - 'null'
          description: Schema version of the request payload.
          example: '1.0'
        timeStamp:
          type:
          - string
          - 'null'
          description: Client timestamp of the request, in ISO 8601 format (UTC).
          format: date-time
          example: '2024-01-01T00:00:00.000Z'
        tenantId:
          type:
          - string
          - 'null'
          description: Tenant identifier. Required for service-token callers; taken from the token for user-token callers.
          example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
        contactNumber:
          type:
          - integer
          - 'null'
          description: Unique identifier of the contact/interaction.
          format: int64
          example: 1234567890
      additionalProperties: false
      description: Request to retrieve a cached self-service summary for an interaction.
      example:
        schemaVersion: '1.0'
        timeStamp: '2024-01-01T00:00:00.000Z'
        tenantId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
        contactNumber: 1234567890
    SelfServiceSummary:
      required:
      - summary
      - uid
      type: object
      properties:
        uid:
          type:
          - string
          - 'null'
          description: Unique identifier of the self-service summary.
          example: es-9f8e7d6c
        summary:
          type:
          - string
          - 'null'
          description: The generated self-service summary text.
          example: Customer reported a billing discrepancy; issued a refund and confirmed resolution.
      additionalProperties: false
      description: The self-service summary content for an interaction.
      example:
        uid: es-9f8e7d6c
        summary: Customer reported a billing discrepancy; issued a refund and confirmed resolution.
  securitySchemes:
    Bearer:
      type: http
      description: JWT Authorization header using the Bearer scheme.
      scheme: bearer
      bearerFormat: JWT
x-refined-from:
- nice-realtimeinsights.json
- nice-realtimeinsights-openapi.yml