GrowthBook · Capability

GrowthBook REST API

GrowthBook REST API. 2 operations. Lead operation: Get a SDK payload. Self-contained Naftiko capability covering one Growthbook business surface.

Run with Naftiko Growthbook

What You Can Do

GET
Getsdkpayload — Get a SDK payload
/v1/v1/sdk-payload/{key}
POST
Postcopytransform — postcopytransform
/v1/v1/transform-copy

MCP Tools

get-sdk-payload

Get a SDK payload

read-only idempotent
postcopytransform

postcopytransform

Capability Spec

growthbook-general.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GrowthBook REST API
  description: 'GrowthBook REST API. 2 operations. Lead operation: Get a SDK payload. Self-contained Naftiko capability covering
    one Growthbook business surface.'
  tags:
  - Growthbook
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GROWTHBOOK_API_KEY: GROWTHBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: growthbook-general
    baseUri: https://api.growthbook.io/api
    description: GrowthBook REST API business capability. Self-contained, no shared references.
    resources:
    - name: v1-sdk-payload-key
      path: /v1/sdk-payload/{key}
      operations:
      - name: getsdkpayload
        method: GET
        description: Get a SDK payload
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: key
          in: path
          type: string
          required: true
    - name: v1-transform-copy
      path: /v1/transform-copy
      operations:
      - name: postcopytransform
        method: POST
        description: ''
        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-general-rest
    port: 8080
    description: REST adapter for GrowthBook REST API. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/v1/sdk-payload/{key}
      name: v1-sdk-payload-key
      description: REST surface for v1-sdk-payload-key.
      operations:
      - method: GET
        name: getsdkpayload
        description: Get a SDK payload
        call: growthbook-general.getsdkpayload
        with:
          key: rest.key
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/transform-copy
      name: v1-transform-copy
      description: REST surface for v1-transform-copy.
      operations:
      - method: POST
        name: postcopytransform
        description: postcopytransform
        call: growthbook-general.postcopytransform
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: growthbook-general-mcp
    port: 9090
    transport: http
    description: MCP adapter for GrowthBook REST API. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-sdk-payload
      description: Get a SDK payload
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: growthbook-general.getsdkpayload
      with:
        key: tools.key
      outputParameters:
      - type: object
        mapping: $.
    - name: postcopytransform
      description: postcopytransform
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: growthbook-general.postcopytransform
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.