Whatfix · Capability

Whatfix API — Analytics

Whatfix API — Analytics. 4 operations. Lead operation: Get End User Engagement. Self-contained Naftiko capability covering one Whatfix business surface.

Run with Naftiko WhatfixAnalytics

What You Can Do

GET
Getenduserengagement — Get End User Engagement
/v1/{accountid}/analytics/end-users
GET
Getflowanalytics — Get Flow Analytics
/v1/{accountid}/analytics/flows
GET
Getselfhelpanalytics — Get Self Help Analytics
/v1/{accountid}/analytics/self-help
GET
Getusertaskcompletion — Get User Task Completion
/v1/{accountid}/analytics/task-completion

MCP Tools

get-end-user-engagement

Get End User Engagement

read-only idempotent
get-flow-analytics

Get Flow Analytics

read-only idempotent
get-self-help-analytics

Get Self Help Analytics

read-only idempotent
get-user-task-completion

Get User Task Completion

read-only idempotent

Capability Spec

whatfix-analytics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Whatfix API — Analytics
  description: 'Whatfix API — Analytics. 4 operations. Lead operation: Get End User Engagement. Self-contained Naftiko capability
    covering one Whatfix business surface.'
  tags:
  - Whatfix
  - Analytics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WHATFIX_API_KEY: WHATFIX_API_KEY
capability:
  consumes:
  - type: http
    namespace: whatfix-analytics
    baseUri: https://whatfix.com/api/v1
    description: Whatfix API — Analytics business capability. Self-contained, no shared references.
    resources:
    - name: accountId-analytics-end-users
      path: /{accountId}/analytics/end-users
      operations:
      - name: getenduserengagement
        method: GET
        description: Get End User Engagement
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accountId-analytics-flows
      path: /{accountId}/analytics/flows
      operations:
      - name: getflowanalytics
        method: GET
        description: Get Flow Analytics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accountId-analytics-self-help
      path: /{accountId}/analytics/self-help
      operations:
      - name: getselfhelpanalytics
        method: GET
        description: Get Self Help Analytics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accountId-analytics-task-completion
      path: /{accountId}/analytics/task-completion
      operations:
      - name: getusertaskcompletion
        method: GET
        description: Get User Task Completion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: x-whatfix-integration-key
      value: '{{env.WHATFIX_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: whatfix-analytics-rest
    port: 8080
    description: REST adapter for Whatfix API — Analytics. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/{accountid}/analytics/end-users
      name: accountid-analytics-end-users
      description: REST surface for accountId-analytics-end-users.
      operations:
      - method: GET
        name: getenduserengagement
        description: Get End User Engagement
        call: whatfix-analytics.getenduserengagement
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{accountid}/analytics/flows
      name: accountid-analytics-flows
      description: REST surface for accountId-analytics-flows.
      operations:
      - method: GET
        name: getflowanalytics
        description: Get Flow Analytics
        call: whatfix-analytics.getflowanalytics
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{accountid}/analytics/self-help
      name: accountid-analytics-self-help
      description: REST surface for accountId-analytics-self-help.
      operations:
      - method: GET
        name: getselfhelpanalytics
        description: Get Self Help Analytics
        call: whatfix-analytics.getselfhelpanalytics
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{accountid}/analytics/task-completion
      name: accountid-analytics-task-completion
      description: REST surface for accountId-analytics-task-completion.
      operations:
      - method: GET
        name: getusertaskcompletion
        description: Get User Task Completion
        call: whatfix-analytics.getusertaskcompletion
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: whatfix-analytics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Whatfix API — Analytics. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-end-user-engagement
      description: Get End User Engagement
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whatfix-analytics.getenduserengagement
      outputParameters:
      - type: object
        mapping: $.
    - name: get-flow-analytics
      description: Get Flow Analytics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whatfix-analytics.getflowanalytics
      outputParameters:
      - type: object
        mapping: $.
    - name: get-self-help-analytics
      description: Get Self Help Analytics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whatfix-analytics.getselfhelpanalytics
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user-task-completion
      description: Get User Task Completion
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whatfix-analytics.getusertaskcompletion
      outputParameters:
      - type: object
        mapping: $.