naftiko: 1.0.0-alpha2 info: label: Flagsmith Admin API — Webhooks description: 'Flagsmith Admin API — Webhooks. 4 operations. Lead operation: List environment webhooks. Self-contained Naftiko capability covering one Flagsmith business surface.' tags: - Flagsmith - Webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FLAGSMITH_API_KEY: FLAGSMITH_API_KEY capability: consumes: - type: http namespace: admin-webhooks baseUri: https://api.flagsmith.com/api/v1 description: Flagsmith Admin API — Webhooks business capability. Self-contained, no shared references. resources: - name: environments-environment_api_key-webhooks path: /environments/{environment_api_key}/webhooks/ operations: - name: listenvironmentwebhooks method: GET description: List environment webhooks outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createenvironmentwebhook method: POST description: Create an environment webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: organisations-organisation_id-webhooks path: /organisations/{organisation_id}/webhooks/ operations: - name: listorganisationwebhooks method: GET description: List organisation webhooks outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createorganisationwebhook method: POST description: Create an organisation webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.FLAGSMITH_API_KEY}}' placement: header exposes: - type: rest namespace: admin-webhooks-rest port: 8080 description: REST adapter for Flagsmith Admin API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/environments/{environment-api-key}/webhooks name: environments-environment-api-key-webhooks description: REST surface for environments-environment_api_key-webhooks. operations: - method: GET name: listenvironmentwebhooks description: List environment webhooks call: admin-webhooks.listenvironmentwebhooks outputParameters: - type: object mapping: $. - method: POST name: createenvironmentwebhook description: Create an environment webhook call: admin-webhooks.createenvironmentwebhook with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/organisations/{organisation-id}/webhooks name: organisations-organisation-id-webhooks description: REST surface for organisations-organisation_id-webhooks. operations: - method: GET name: listorganisationwebhooks description: List organisation webhooks call: admin-webhooks.listorganisationwebhooks outputParameters: - type: object mapping: $. - method: POST name: createorganisationwebhook description: Create an organisation webhook call: admin-webhooks.createorganisationwebhook with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: admin-webhooks-mcp port: 9090 transport: http description: MCP adapter for Flagsmith Admin API — Webhooks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-environment-webhooks description: List environment webhooks hints: readOnly: true destructive: false idempotent: true call: admin-webhooks.listenvironmentwebhooks outputParameters: - type: object mapping: $. - name: create-environment-webhook description: Create an environment webhook hints: readOnly: false destructive: false idempotent: false call: admin-webhooks.createenvironmentwebhook with: body: tools.body outputParameters: - type: object mapping: $. - name: list-organisation-webhooks description: List organisation webhooks hints: readOnly: true destructive: false idempotent: true call: admin-webhooks.listorganisationwebhooks outputParameters: - type: object mapping: $. - name: create-organisation-webhook description: Create an organisation webhook hints: readOnly: false destructive: false idempotent: false call: admin-webhooks.createorganisationwebhook with: body: tools.body outputParameters: - type: object mapping: $.