GrowthBook · Capability

GrowthBook REST API — snapshots

GrowthBook REST API — snapshots. 2 operations. Lead operation: Create Experiment Snapshot. Self-contained Naftiko capability covering one Growthbook business surface.

Run with Naftiko Growthbooksnapshots

What You Can Do

POST
Postexperimentsnapshot — Create Experiment Snapshot
/v1/v1/experiments/{id}/snapshot
GET
Getexperimentsnapshot — Get an experiment snapshot status
/v1/v1/snapshots/{id}

MCP Tools

create-experiment-snapshot

Create Experiment Snapshot

get-experiment-snapshot-status

Get an experiment snapshot status

read-only idempotent

Capability Spec

growthbook-snapshots.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GrowthBook REST API — snapshots
  description: 'GrowthBook REST API — snapshots. 2 operations. Lead operation: Create Experiment Snapshot. Self-contained
    Naftiko capability covering one Growthbook business surface.'
  tags:
  - Growthbook
  - snapshots
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GROWTHBOOK_API_KEY: GROWTHBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: growthbook-snapshots
    baseUri: https://api.growthbook.io/api
    description: GrowthBook REST API — snapshots business capability. Self-contained, no shared references.
    resources:
    - name: v1-experiments-id-snapshot
      path: /v1/experiments/{id}/snapshot
      operations:
      - name: postexperimentsnapshot
        method: POST
        description: Create Experiment Snapshot
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The experiment id of the experiment to update
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-snapshots-id
      path: /v1/snapshots/{id}
      operations:
      - name: getexperimentsnapshot
        method: GET
        description: Get an experiment snapshot status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The id of the requested resource (a snapshot ID, not experiment ID)
          required: true
    authentication:
      type: bearer
      token: '{{env.GROWTHBOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: growthbook-snapshots-rest
    port: 8080
    description: REST adapter for GrowthBook REST API — snapshots. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/experiments/{id}/snapshot
      name: v1-experiments-id-snapshot
      description: REST surface for v1-experiments-id-snapshot.
      operations:
      - method: POST
        name: postexperimentsnapshot
        description: Create Experiment Snapshot
        call: growthbook-snapshots.postexperimentsnapshot
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/snapshots/{id}
      name: v1-snapshots-id
      description: REST surface for v1-snapshots-id.
      operations:
      - method: GET
        name: getexperimentsnapshot
        description: Get an experiment snapshot status
        call: growthbook-snapshots.getexperimentsnapshot
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: growthbook-snapshots-mcp
    port: 9090
    transport: http
    description: MCP adapter for GrowthBook REST API — snapshots. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-experiment-snapshot
      description: Create Experiment Snapshot
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: growthbook-snapshots.postexperimentsnapshot
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-experiment-snapshot-status
      description: Get an experiment snapshot status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: growthbook-snapshots.getexperimentsnapshot
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.