naftiko: 1.0.0-alpha2 info: label: GrowthBook REST API — ExperimentTemplates description: 'GrowthBook REST API — ExperimentTemplates. 6 operations. Lead operation: Create a single experimentTemplate. Self-contained Naftiko capability covering one Growthbook business surface.' tags: - Growthbook - ExperimentTemplates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GROWTHBOOK_API_KEY: GROWTHBOOK_API_KEY capability: consumes: - type: http namespace: growthbook-experimenttemplates baseUri: https://api.growthbook.io/api description: GrowthBook REST API — ExperimentTemplates business capability. Self-contained, no shared references. resources: - name: v1-experiment-templates path: /v1/experiment-templates operations: - name: createexperimenttemplate method: POST description: Create a single experimentTemplate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listexperimenttemplates method: GET description: Get all experimentTemplates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: query type: string - name: v1-experiment-templates-bulk-import path: /v1/experiment-templates/bulk-import operations: - name: bulkimportexperimenttemplates method: POST description: Bulk create or update experiment templates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-experiment-templates-id path: /v1/experiment-templates/{id} operations: - name: getexperimenttemplate method: GET description: Get a single experimentTemplate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: deleteexperimenttemplate method: DELETE description: Delete a single experimentTemplate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: updateexperimenttemplate method: PUT description: Update a single experimentTemplate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - 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-experimenttemplates-rest port: 8080 description: REST adapter for GrowthBook REST API — ExperimentTemplates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/experiment-templates name: v1-experiment-templates description: REST surface for v1-experiment-templates. operations: - method: POST name: createexperimenttemplate description: Create a single experimentTemplate call: growthbook-experimenttemplates.createexperimenttemplate with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listexperimenttemplates description: Get all experimentTemplates call: growthbook-experimenttemplates.listexperimenttemplates with: projectId: rest.projectId outputParameters: - type: object mapping: $. - path: /v1/v1/experiment-templates/bulk-import name: v1-experiment-templates-bulk-import description: REST surface for v1-experiment-templates-bulk-import. operations: - method: POST name: bulkimportexperimenttemplates description: Bulk create or update experiment templates call: growthbook-experimenttemplates.bulkimportexperimenttemplates with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/experiment-templates/{id} name: v1-experiment-templates-id description: REST surface for v1-experiment-templates-id. operations: - method: GET name: getexperimenttemplate description: Get a single experimentTemplate call: growthbook-experimenttemplates.getexperimenttemplate with: id: rest.id outputParameters: - type: object mapping: $. - method: DELETE name: deleteexperimenttemplate description: Delete a single experimentTemplate call: growthbook-experimenttemplates.deleteexperimenttemplate with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: updateexperimenttemplate description: Update a single experimentTemplate call: growthbook-experimenttemplates.updateexperimenttemplate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: growthbook-experimenttemplates-mcp port: 9090 transport: http description: MCP adapter for GrowthBook REST API — ExperimentTemplates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-single-experimenttemplate description: Create a single experimentTemplate hints: readOnly: false destructive: false idempotent: false call: growthbook-experimenttemplates.createexperimenttemplate with: body: tools.body outputParameters: - type: object mapping: $. - name: get-all-experimenttemplates description: Get all experimentTemplates hints: readOnly: true destructive: false idempotent: true call: growthbook-experimenttemplates.listexperimenttemplates with: projectId: tools.projectId outputParameters: - type: object mapping: $. - name: bulk-create-update-experiment-templates description: Bulk create or update experiment templates hints: readOnly: false destructive: false idempotent: false call: growthbook-experimenttemplates.bulkimportexperimenttemplates with: body: tools.body outputParameters: - type: object mapping: $. - name: get-single-experimenttemplate description: Get a single experimentTemplate hints: readOnly: true destructive: false idempotent: true call: growthbook-experimenttemplates.getexperimenttemplate with: id: tools.id outputParameters: - type: object mapping: $. - name: delete-single-experimenttemplate description: Delete a single experimentTemplate hints: readOnly: false destructive: true idempotent: true call: growthbook-experimenttemplates.deleteexperimenttemplate with: id: tools.id outputParameters: - type: object mapping: $. - name: update-single-experimenttemplate description: Update a single experimentTemplate hints: readOnly: false destructive: false idempotent: true call: growthbook-experimenttemplates.updateexperimenttemplate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $.