NiCE Insights - Custom Card API

Create and retrieve custom informational cards for interactions.

GitHub OpenAPI

Operations 2

POST /eai-real-time-insight/v1/custom-card Creates a custom card for the given interaction #
GET /eai-real-time-insight/v1/custom-card Retrieves the custom cards stored for the given interaction #

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-custom-card-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-custom-card-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nice Insights - Custom Card API
  version: 1.0.0
  description: 'Operations tagged Insights - Custom Card 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 - Custom Card
  description: Create and retrieve custom informational cards for interactions.
paths:
  /eai-real-time-insight/v1/custom-card:
    post:
      tags:
      - Insights - Custom Card
      summary: Creates a custom card for the given interaction
      description: 'Attaches a custom informational card to an active interaction. The card content (title, body text,

        links, images, actions, and an optional prompt) is persisted against the contact identified in

        `meta.contactNumber`, and the service returns the generated card UID and the server timestamp.

        Requires a user token.'
      operationId: createCustomCard
      requestBody:
        description: 'The custom card creation request: card content, links, actions, and interaction metadata.'
        content:
          application/json; x-api-version=1.0:
            schema:
              required:
              - timestamp
              - meta
              - card
              allOf:
              - $ref: '#/components/schemas/CustomCardRequest'
              description: Request to create a custom card for an interaction.
          text/json; x-api-version=1.0:
            schema:
              required:
              - timestamp
              - meta
              - card
              allOf:
              - $ref: '#/components/schemas/CustomCardRequest'
              description: Request to create a custom card for an interaction.
          application/*+json; x-api-version=1.0:
            schema:
              required:
              - timestamp
              - meta
              - card
              allOf:
              - $ref: '#/components/schemas/CustomCardRequest'
              description: Request to create a custom card for an interaction.
      responses:
        '200':
          description: The custom card was created; returns the generated card UID and timestamp.
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/CustomCardResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/CustomCardResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/CustomCardResponse'
        '400':
          description: Validation failed — e.g. missing timestamp, meta.contactNumber, or card; or both card.text and card.prompt were supplied.
          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 creating the card.
          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 - Custom Card
      summary: Retrieves the custom cards stored for the given interaction
      description: 'Returns all custom cards previously stored for the interaction identified in `meta.contactNumber`,

        including an empty collection when no cards exist. Requires a user token.'
      operationId: getCustomCard
      requestBody:
        description: The request identifying the interaction (contact metadata).
        content:
          application/json; x-api-version=1.0:
            schema:
              required:
              - timestamp
              - meta
              allOf:
              - $ref: '#/components/schemas/GetCustomCardRequest'
              description: Request to retrieve the custom cards stored for an interaction.
          text/json; x-api-version=1.0:
            schema:
              required:
              - timestamp
              - meta
              allOf:
              - $ref: '#/components/schemas/GetCustomCardRequest'
              description: Request to retrieve the custom cards stored for an interaction.
          application/*+json; x-api-version=1.0:
            schema:
              required:
              - timestamp
              - meta
              allOf:
              - $ref: '#/components/schemas/GetCustomCardRequest'
              description: Request to retrieve the custom cards stored for an interaction.
      responses:
        '200':
          description: Returns the custom cards stored for the interaction (empty when none exist).
          content:
            text/plain; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/GetCustomCardResponse'
            application/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/GetCustomCardResponse'
            text/json; x-api-version=1.0:
              schema:
                $ref: '#/components/schemas/GetCustomCardResponse'
        '400':
          description: Validation failed — e.g. missing timestamp or meta.contactNumber.
          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 cards.
          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:
    GetCustomCardRequest:
      required:
      - meta
      - timestamp
      type: object
      properties:
        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'
        schemaVersion:
          type:
          - string
          - 'null'
          description: Schema version of the request payload.
          example: '1.0'
        meta:
          required:
          - contactNumber
          allOf:
          - $ref: '#/components/schemas/CustomCardRequestMeta'
          description: Interaction metadata identifying which contact to retrieve cards for.
      additionalProperties: false
      description: Request to retrieve the custom cards stored for an interaction.
      example:
        timestamp: '2024-01-01T00:00:00.000Z'
        schemaVersion: '1.0'
        meta:
          contactNumber: 1234567890
    CustomCardLinkData:
      required:
      - title
      - url
      type: object
      properties:
        title:
          type:
          - string
          - 'null'
          description: Display text for the link.
          example: View full account
        url:
          type:
          - string
          - 'null'
          description: Target URL of the link.
          example: https://crm.example.com/accounts/123
      additionalProperties: false
      description: A hyperlink stored on a custom card.
      example:
        title: View full account
        url: https://crm.example.com/accounts/123
    CustomCardRequest:
      required:
      - card
      - meta
      - timestamp
      type: object
      properties:
        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'
        schemaVersion:
          type:
          - string
          - 'null'
          description: Schema version of the request payload.
          example: '1.0'
        meta:
          required:
          - contactNumber
          allOf:
          - $ref: '#/components/schemas/CustomCardRequestMeta'
          description: Interaction metadata identifying which contact the card belongs to.
        card:
          allOf:
          - $ref: '#/components/schemas/CustomCardItem'
          description: The custom card content to create.
      additionalProperties: false
      description: Request to create a custom card for an interaction.
      example:
        timestamp: '2024-01-01T00:00:00.000Z'
        schemaVersion: '1.0'
        meta:
          contactNumber: 1234567890
        card:
          title: Account Overview
          text: Customer has 3 open tickets and an overdue invoice.
          prompt:
            uid: prompt-abc123
            transcript:
              agentContactUid: c9d8e7f6-1234-4a5b-8c9d-0e1f2a3b4c5d
              channel: voice
              parameterName: transcript
            parameters:
            - name: customerName
              value: Jane Doe
          links:
          - title: View full account
            url: https://crm.example.com/accounts/123
          images:
          - title: Product screenshot
            url: https://cdn.example.com/images/product.png
            thumbUrl: https://cdn.example.com/images/product-thumb.png
          icon: info
          backgroundColor: '#F4F1EA'
    CustomCardRequestMeta:
      required:
      - contactNumber
      type: object
      properties:
        contactNumber:
          type:
          - integer
          - 'null'
          description: Unique identifier of the contact/interaction the card is associated with.
          format: int64
          example: 1234567890
      additionalProperties: false
      description: Interaction metadata for a custom card request.
      example:
        contactNumber: 1234567890
    CustomCardImage:
      type: object
      properties:
        title:
          type:
          - string
          - 'null'
          description: Image title or alt text.
          example: Product screenshot
        url:
          type:
          - string
          - 'null'
          description: Full-size image URL.
          example: https://cdn.example.com/images/product.png
        thumbUrl:
          type:
          - string
          - 'null'
          description: Thumbnail image URL.
          example: https://cdn.example.com/images/product-thumb.png
      additionalProperties: false
      description: An image displayed on a custom card.
      example:
        title: Product screenshot
        url: https://cdn.example.com/images/product.png
        thumbUrl: https://cdn.example.com/images/product-thumb.png
    CustomCardImageData:
      required:
      - url
      type: object
      properties:
        title:
          type:
          - string
          - 'null'
          description: Image title or alt text.
          example: Product screenshot
        url:
          type:
          - string
          - 'null'
          description: Full-size image URL.
          example: https://cdn.example.com/images/product.png
        thumbUrl:
          type:
          - string
          - 'null'
          description: Thumbnail image URL.
          example: https://cdn.example.com/images/product-thumb.png
      additionalProperties: false
      description: An image stored on a custom card.
      example:
        title: Product screenshot
        url: https://cdn.example.com/images/product.png
        thumbUrl: https://cdn.example.com/images/product-thumb.png
    CustomCardLink:
      type: object
      properties:
        title:
          type:
          - string
          - 'null'
          description: Display text for the link.
          example: View full account
        url:
          type:
          - string
          - 'null'
          description: Target URL of the link.
          example: https://crm.example.com/accounts/123
      additionalProperties: false
      description: A hyperlink displayed on a custom card.
      example:
        title: View full account
        url: https://crm.example.com/accounts/123
    CustomCardPrompt:
      type: object
      properties:
        uid:
          type:
          - string
          - 'null'
          description: Unique identifier of the prompt.
          example: prompt-abc123
        transcript:
          allOf:
          - $ref: '#/components/schemas/CustomCardPromptTranscript'
          description: Transcript context supplied to the prompt.
        parameters:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/CustomCardPromptParameter'
          description: Parameters supplied to the prompt.
      additionalProperties: false
      description: Prompt used to generate or populate a custom card.
      example:
        uid: prompt-abc123
        transcript:
          agentContactUid: c9d8e7f6-1234-4a5b-8c9d-0e1f2a3b4c5d
          channel: voice
          parameterName: transcript
        parameters:
        - name: customerName
          value: Jane Doe
    GetCustomCardResponse:
      required:
      - cards
      - timestamp
      type: object
      properties:
        timestamp:
          type: string
          description: Server timestamp of the response (UTC).
          format: date-time
          example: '2024-01-01T00:00:05.123Z'
        cards:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/CustomCardDataItem'
          description: The custom cards associated with the interaction.
      additionalProperties: false
      description: The custom cards stored for an interaction.
      example:
        timestamp: '2024-01-01T00:00:05.123Z'
        cards:
        - timestamp: '2024-01-01T00:00:05.123Z'
          uid: card-9f8e7d6c
          type: info
          title: Account Overview
          text: Customer has 3 open tickets and an overdue invoice.
          links:
          - title: View full account
            url: https://crm.example.com/accounts/123
          images:
          - title: Product screenshot
            url: https://cdn.example.com/images/product.png
            thumbUrl: https://cdn.example.com/images/product-thumb.png
          icon: info
          backgroundColor: '#F4F1EA'
    CustomCardPromptTranscript:
      type: object
      properties:
        agentContactUid:
          type:
          - string
          - 'null'
          description: Identifier of the agent's contact leg for the interaction.
          example: c9d8e7f6-1234-4a5b-8c9d-0e1f2a3b4c5d
        channel:
          type:
          - string
          - 'null'
          description: Channel of the interaction (e.g. digital or voice).
          example: voice
        parameterName:
          type:
          - string
          - 'null'
          description: Name of the parameter the transcript populates.
          example: transcript
      additionalProperties: false
      description: Transcript context supplied to a custom card prompt.
      example:
        agentContactUid: c9d8e7f6-1234-4a5b-8c9d-0e1f2a3b4c5d
        channel: voice
        parameterName: transcript
    CustomCardPromptParameter:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
          description: Parameter name.
          example: customerName
        value:
          type:
          - string
          - 'null'
          description: Parameter value.
          example: Jane Doe
      additionalProperties: false
      description: A name/value parameter supplied to a custom card prompt.
      example:
        name: customerName
        value: Jane Doe
    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'
    CustomCardResponse:
      required:
      - cardUid
      - timestamp
      type: object
      properties:
        timestamp:
          type: string
          description: Server timestamp when the card was created (UTC).
          format: date-time
          example: '2024-01-01T00:00:05.123Z'
        cardUid:
          type:
          - string
          - 'null'
          description: Unique identifier assigned to the created card.
          example: card-9f8e7d6c
      additionalProperties: false
      description: Result of creating a custom card.
      example:
        timestamp: '2024-01-01T00:00:05.123Z'
        cardUid: card-9f8e7d6c
    CustomCardDataItem:
      required:
      - text
      - type
      - uid
      type: object
      properties:
        timestamp:
          type: string
          description: Timestamp when the card was created or last updated (UTC).
          format: date-time
          example: '2024-01-01T00:00:05.123Z'
        uid:
          type:
          - string
          - 'null'
          description: Unique identifier of the card.
          example: card-9f8e7d6c
        type:
          type:
          - string
          - 'null'
          description: Card type discriminator.
          example: info
        title:
          type:
          - string
          - 'null'
          description: Card title shown to the agent.
          example: Account Overview
        text:
          type:
          - string
          - 'null'
          description: Card body text.
          example: Customer has 3 open tickets and an overdue invoice.
        links:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/CustomCardLinkData'
          description: Links displayed on the card.
        images:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/CustomCardImageData'
          description: Images displayed on the card.
        icon:
          type:
          - string
          - 'null'
          description: Icon identifier or URL shown on the card.
          example: info
        backgroundColor:
          type:
          - string
          - 'null'
          description: Background color of the card, as a hex color code.
          example: '#F4F1EA'
        actions:
          type:
          - array
          - 'null'
          items:
            type: string
          description: Action identifiers available on the card.
      additionalProperties: false
      description: A stored custom card and its content.
      example:
        timestamp: '2024-01-01T00:00:05.123Z'
        uid: card-9f8e7d6c
        type: info
        title: Account Overview
        text: Customer has 3 open tickets and an overdue invoice.
        links:
        - title: View full account
          url: https://crm.example.com/accounts/123
        images:
        - title: Product screenshot
          url: https://cdn.example.com/images/product.png
          thumbUrl: https://cdn.example.com/images/product-thumb.png
        icon: info
        backgroundColor: '#F4F1EA'
    CustomCardItem:
      type: object
      properties:
        title:
          type:
          - string
          - 'null'
          description: Card title shown to the agent.
          example: Account Overview
        text:
          type:
          - string
          - 'null'
          description: Card body text.
          example: Customer has 3 open tickets and an overdue invoice.
        prompt:
          allOf:
          - $ref: '#/components/schemas/CustomCardPrompt'
          description: Optional prompt used to generate or populate the card.
        links:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/CustomCardLink'
          description: Links displayed on the card.
        images:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/CustomCardImage'
          description: Images displayed on the card.
        icon:
          type:
          - string
          - 'null'
          description: Icon identifier or URL shown on the card.
          example: info
        backgroundColor:
          type:
          - string
          - 'null'
          description: Background color of the card, as a hex color code.
          example: '#F4F1EA'
        actions:
          type:
          - array
          - 'null'
          items:
            type: string
          description: Action identifiers available on the card.
      additionalProperties: false
      description: 'Content of a custom card: title, body text, optional prompt, links, images, and actions.'
      example:
        title: Account Overview
        text: Customer has 3 open tickets and an overdue invoice.
        prompt:
          uid: prompt-abc123
          transcript:
            agentContactUid: c9d8e7f6-1234-4a5b-8c9d-0e1f2a3b4c5d
            channel: voice
            parameterName: transcript
          parameters:
          - name: customerName
            value: Jane Doe
        links:
        - title: View full account
          url: https://crm.example.com/accounts/123
        images:
        - title: Product screenshot
          url: https://cdn.example.com/images/product.png
          thumbUrl: https://cdn.example.com/images/product-thumb.png
        icon: info
        backgroundColor: '#F4F1EA'
  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