GrowthBook · Capability

GrowthBook REST API — AnalyticsExplorations

GrowthBook REST API — AnalyticsExplorations. 3 operations. Lead operation: Create a Data Source based visualization. Self-contained Naftiko capability covering one Growthbook business surface.

Run with Naftiko GrowthbookAnalyticsExplorations

What You Can Do

POST
Postdatasourceexploration — Create a Data Source based visualization
/v1/v1/product-analytics/data-source-exploration
POST
Postfacttableexploration — Run a Fact Table based visualization
/v1/v1/product-analytics/fact-table-exploration
POST
Postmetricexploration — Create a Metric based visualization
/v1/v1/product-analytics/metric-exploration

MCP Tools

create-data-source-based-visualization

Create a Data Source based visualization

run-fact-table-based-visualization

Run a Fact Table based visualization

create-metric-based-visualization

Create a Metric based visualization

Capability Spec

growthbook-analyticsexplorations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GrowthBook REST API — AnalyticsExplorations
  description: 'GrowthBook REST API — AnalyticsExplorations. 3 operations. Lead operation: Create a Data Source based visualization.
    Self-contained Naftiko capability covering one Growthbook business surface.'
  tags:
  - Growthbook
  - AnalyticsExplorations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GROWTHBOOK_API_KEY: GROWTHBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: growthbook-analyticsexplorations
    baseUri: https://api.growthbook.io/api
    description: GrowthBook REST API — AnalyticsExplorations business capability. Self-contained, no shared references.
    resources:
    - name: v1-product-analytics-data-source-exploration
      path: /v1/product-analytics/data-source-exploration
      operations:
      - name: postdatasourceexploration
        method: POST
        description: Create a Data Source based visualization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-product-analytics-fact-table-exploration
      path: /v1/product-analytics/fact-table-exploration
      operations:
      - name: postfacttableexploration
        method: POST
        description: Run a Fact Table based visualization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-product-analytics-metric-exploration
      path: /v1/product-analytics/metric-exploration
      operations:
      - name: postmetricexploration
        method: POST
        description: Create a Metric based visualization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GROWTHBOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: growthbook-analyticsexplorations-rest
    port: 8080
    description: REST adapter for GrowthBook REST API — AnalyticsExplorations. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/product-analytics/data-source-exploration
      name: v1-product-analytics-data-source-exploration
      description: REST surface for v1-product-analytics-data-source-exploration.
      operations:
      - method: POST
        name: postdatasourceexploration
        description: Create a Data Source based visualization
        call: growthbook-analyticsexplorations.postdatasourceexploration
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/product-analytics/fact-table-exploration
      name: v1-product-analytics-fact-table-exploration
      description: REST surface for v1-product-analytics-fact-table-exploration.
      operations:
      - method: POST
        name: postfacttableexploration
        description: Run a Fact Table based visualization
        call: growthbook-analyticsexplorations.postfacttableexploration
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/product-analytics/metric-exploration
      name: v1-product-analytics-metric-exploration
      description: REST surface for v1-product-analytics-metric-exploration.
      operations:
      - method: POST
        name: postmetricexploration
        description: Create a Metric based visualization
        call: growthbook-analyticsexplorations.postmetricexploration
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: growthbook-analyticsexplorations-mcp
    port: 9090
    transport: http
    description: MCP adapter for GrowthBook REST API — AnalyticsExplorations. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: create-data-source-based-visualization
      description: Create a Data Source based visualization
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: growthbook-analyticsexplorations.postdatasourceexploration
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: run-fact-table-based-visualization
      description: Run a Fact Table based visualization
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: growthbook-analyticsexplorations.postfacttableexploration
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-metric-based-visualization
      description: Create a Metric based visualization
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: growthbook-analyticsexplorations.postmetricexploration
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.