Seismic · Capability

Seismic Analytics API — User Analytics

Seismic Analytics API — User Analytics. 2 operations. Lead operation: Get User Analytics. Self-contained Naftiko capability covering one Seismic business surface.

Run with Naftiko SeismicUser Analytics

What You Can Do

GET
Getuseranalytics — Get User Analytics
/v1/analytics/users
GET
Getuseractivityanalytics — Get Analytics for a User
/v1/analytics/users/{userid}

MCP Tools

get-user-analytics

Get User Analytics

read-only idempotent
get-analytics-user

Get Analytics for a User

read-only idempotent

Capability Spec

analytics-user-analytics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Seismic Analytics API — User Analytics
  description: 'Seismic Analytics API — User Analytics. 2 operations. Lead operation: Get User Analytics. Self-contained Naftiko
    capability covering one Seismic business surface.'
  tags:
  - Seismic
  - User Analytics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SEISMIC_API_KEY: SEISMIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: analytics-user-analytics
    baseUri: https://api.seismic.com/integration/v2
    description: Seismic Analytics API — User Analytics business capability. Self-contained, no shared references.
    resources:
    - name: analytics-users
      path: /analytics/users
      operations:
      - name: getuseranalytics
        method: GET
        description: Get User Analytics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: query
          type: string
          description: Filter analytics for a specific user.
        - name: groupId
          in: query
          type: string
          description: Filter analytics by user group.
        - name: startDate
          in: query
          type: string
          description: Start date for the analytics period.
        - name: endDate
          in: query
          type: string
          description: End date for the analytics period.
        - name: granularity
          in: query
          type: string
          description: Time granularity for the analytics data.
        - name: offset
          in: query
          type: integer
          description: Number of items to skip for pagination.
        - name: limit
          in: query
          type: integer
          description: Maximum number of items to return.
    - name: analytics-users-userId
      path: /analytics/users/{userId}
      operations:
      - name: getuseractivityanalytics
        method: GET
        description: Get Analytics for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: path
          type: string
          description: Unique identifier of the user.
          required: true
        - name: startDate
          in: query
          type: string
          description: Start date for the analytics period.
        - name: endDate
          in: query
          type: string
          description: End date for the analytics period.
    authentication:
      type: bearer
      token: '{{env.SEISMIC_API_KEY}}'
  exposes:
  - type: rest
    namespace: analytics-user-analytics-rest
    port: 8080
    description: REST adapter for Seismic Analytics API — User Analytics. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/analytics/users
      name: analytics-users
      description: REST surface for analytics-users.
      operations:
      - method: GET
        name: getuseranalytics
        description: Get User Analytics
        call: analytics-user-analytics.getuseranalytics
        with:
          userId: rest.userId
          groupId: rest.groupId
          startDate: rest.startDate
          endDate: rest.endDate
          granularity: rest.granularity
          offset: rest.offset
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/analytics/users/{userid}
      name: analytics-users-userid
      description: REST surface for analytics-users-userId.
      operations:
      - method: GET
        name: getuseractivityanalytics
        description: Get Analytics for a User
        call: analytics-user-analytics.getuseractivityanalytics
        with:
          userId: rest.userId
          startDate: rest.startDate
          endDate: rest.endDate
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: analytics-user-analytics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Seismic Analytics API — User Analytics. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-user-analytics
      description: Get User Analytics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: analytics-user-analytics.getuseranalytics
      with:
        userId: tools.userId
        groupId: tools.groupId
        startDate: tools.startDate
        endDate: tools.endDate
        granularity: tools.granularity
        offset: tools.offset
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-analytics-user
      description: Get Analytics for a User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: analytics-user-analytics.getuseractivityanalytics
      with:
        userId: tools.userId
        startDate: tools.startDate
        endDate: tools.endDate
      outputParameters:
      - type: object
        mapping: $.