Amplitude · Capability

Amplitude Dashboard REST API — Event Segmentation

Amplitude Dashboard REST API — Event Segmentation. 1 operations. Lead operation: Amplitude Get Event Segmentation. Self-contained Naftiko capability covering one Amplitude business surface.

Run with Naftiko AmplitudeEvent Segmentation

What You Can Do

GET
Geteventsegmentation — Amplitude Get Event Segmentation
/v1/api/2/events/segmentation

MCP Tools

amplitude-get-event-segmentation

Amplitude Get Event Segmentation

read-only idempotent

Capability Spec

dashboard-rest-event-segmentation.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amplitude Dashboard REST API — Event Segmentation
  description: 'Amplitude Dashboard REST API — Event Segmentation. 1 operations. Lead operation: Amplitude Get Event Segmentation.
    Self-contained Naftiko capability covering one Amplitude business surface.'
  tags:
  - Amplitude
  - Event Segmentation
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMPLITUDE_API_KEY: AMPLITUDE_API_KEY
capability:
  consumes:
  - type: http
    namespace: dashboard-rest-event-segmentation
    baseUri: https://amplitude.com
    description: Amplitude Dashboard REST API — Event Segmentation business capability. Self-contained, no shared references.
    resources:
    - name: api-2-events-segmentation
      path: /api/2/events/segmentation
      operations:
      - name: geteventsegmentation
        method: GET
        description: Amplitude Get Event Segmentation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: m
          in: query
          type: string
          description: The metric to compute. Options include uniques, totals, pct_dau, average, histogram, sums, value_avg,
            or formula.
        - name: i
          in: query
          type: integer
          description: Time interval granularity. Use -300000 for real-time, 1 for daily, 7 for weekly, or 30 for monthly.
        - name: s
          in: query
          type: string
          description: Segment definitions as a JSON-encoded array of segment objects for filtering results.
        - name: g
          in: query
          type: string
          description: The property to group results by, such as a user property or event property name.
        - name: limit
          in: query
          type: integer
          description: The number of group-by values to return. Default is 100, max is 1000.
    authentication:
      type: basic
      username: '{{env.AMPLITUDE_USER}}'
      password: '{{env.AMPLITUDE_PASS}}'
  exposes:
  - type: rest
    namespace: dashboard-rest-event-segmentation-rest
    port: 8080
    description: REST adapter for Amplitude Dashboard REST API — Event Segmentation. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/2/events/segmentation
      name: api-2-events-segmentation
      description: REST surface for api-2-events-segmentation.
      operations:
      - method: GET
        name: geteventsegmentation
        description: Amplitude Get Event Segmentation
        call: dashboard-rest-event-segmentation.geteventsegmentation
        with:
          m: rest.m
          i: rest.i
          s: rest.s
          g: rest.g
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: dashboard-rest-event-segmentation-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amplitude Dashboard REST API — Event Segmentation. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: amplitude-get-event-segmentation
      description: Amplitude Get Event Segmentation
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dashboard-rest-event-segmentation.geteventsegmentation
      with:
        m: tools.m
        i: tools.i
        s: tools.s
        g: tools.g
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.