Imentiv AI · Capability

Welcome to Imentiv AI — AI Insights API

Welcome to Imentiv AI — AI Insights API. 2 operations. Lead operation: Send message to AI Insights. Self-contained Naftiko capability covering one Imentiv Ai business surface.

Run with Naftiko Imentiv AiAI Insights API

What You Can Do

POST
Chataiinsightsv2mediatypemediaidaiinsightspost — Send message to AI Insights
/v1/v2/{media-type}/{media-id}/ai-insights
GET
Getaiinsightshistoryv2mediatypemediaidaiinsightsget — Get AI Insights conversation history
/v1/v2/{media-type}/{media-id}/ai-insights

MCP Tools

send-message-ai-insights

Send message to AI Insights

get-ai-insights-conversation-history

Get AI Insights conversation history

read-only idempotent

Capability Spec

imentiv-ai-ai-insights-api.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Welcome to Imentiv AI — AI Insights API
  description: 'Welcome to Imentiv AI — AI Insights API. 2 operations. Lead operation: Send message to AI Insights. Self-contained
    Naftiko capability covering one Imentiv Ai business surface.'
  tags:
  - Imentiv Ai
  - AI Insights API
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    IMENTIV_AI_API_KEY: IMENTIV_AI_API_KEY
capability:
  consumes:
  - type: http
    namespace: imentiv-ai-ai-insights-api
    baseUri: ''
    description: Welcome to Imentiv AI — AI Insights API business capability. Self-contained, no shared references.
    resources:
    - name: v2-media_type-media_id-ai-insights
      path: /v2/{media_type}/{media_id}/ai-insights
      operations:
      - name: chataiinsightsv2mediatypemediaidaiinsightspost
        method: POST
        description: Send message to AI Insights
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: media_type
          in: path
          type: string
          required: true
        - name: media_id
          in: path
          type: string
          required: true
        - name: stream
          in: query
          type: boolean
          description: Enable SSE streaming (true) or return full JSON response (false)
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: getaiinsightshistoryv2mediatypemediaidaiinsightsget
        method: GET
        description: Get AI Insights conversation history
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: media_type
          in: path
          type: string
          required: true
        - name: media_id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.IMENTIV_AI_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: imentiv-ai-ai-insights-api-rest
    port: 8080
    description: REST adapter for Welcome to Imentiv AI — AI Insights API. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/{media-type}/{media-id}/ai-insights
      name: v2-media-type-media-id-ai-insights
      description: REST surface for v2-media_type-media_id-ai-insights.
      operations:
      - method: POST
        name: chataiinsightsv2mediatypemediaidaiinsightspost
        description: Send message to AI Insights
        call: imentiv-ai-ai-insights-api.chataiinsightsv2mediatypemediaidaiinsightspost
        with:
          media_type: rest.media_type
          media_id: rest.media_id
          stream: rest.stream
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getaiinsightshistoryv2mediatypemediaidaiinsightsget
        description: Get AI Insights conversation history
        call: imentiv-ai-ai-insights-api.getaiinsightshistoryv2mediatypemediaidaiinsightsget
        with:
          media_type: rest.media_type
          media_id: rest.media_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: imentiv-ai-ai-insights-api-mcp
    port: 9090
    transport: http
    description: MCP adapter for Welcome to Imentiv AI — AI Insights API. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: send-message-ai-insights
      description: Send message to AI Insights
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: imentiv-ai-ai-insights-api.chataiinsightsv2mediatypemediaidaiinsightspost
      with:
        media_type: tools.media_type
        media_id: tools.media_id
        stream: tools.stream
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-ai-insights-conversation-history
      description: Get AI Insights conversation history
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: imentiv-ai-ai-insights-api.getaiinsightshistoryv2mediatypemediaidaiinsightsget
      with:
        media_type: tools.media_type
        media_id: tools.media_id
      outputParameters:
      - type: object
        mapping: $.