naftiko: 1.0.0-alpha2 info: label: Fulcrum API — Webhooks description: 'Fulcrum API — Webhooks. 5 operations. Lead operation: List webhooks. Self-contained Naftiko capability covering one Fulcrum business surface.' tags: - Fulcrum - Webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FULCRUM_API_KEY: FULCRUM_API_KEY capability: consumes: - type: http namespace: fulcrum-webhooks baseUri: https://api.fulcrumapp.com/api/v2 description: Fulcrum API — Webhooks business capability. Self-contained, no shared references. resources: - name: webhooks.json path: /webhooks.json operations: - name: listwebhooks method: GET description: List webhooks outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createwebhook method: POST description: Create webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: webhooks-id}.json path: /webhooks/{id}.json operations: - name: getwebhook method: GET description: Get webhook outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatewebhook method: PUT description: Update webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletewebhook method: DELETE description: Delete webhook outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: X-ApiToken value: '{{env.FULCRUM_API_KEY}}' placement: header exposes: - type: rest namespace: fulcrum-webhooks-rest port: 8080 description: REST adapter for Fulcrum API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/webhooks-json name: webhooks-json description: REST surface for webhooks.json. operations: - method: GET name: listwebhooks description: List webhooks call: fulcrum-webhooks.listwebhooks outputParameters: - type: object mapping: $. - method: POST name: createwebhook description: Create webhook call: fulcrum-webhooks.createwebhook with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/webhooks/id-json name: webhooks-id-json description: REST surface for webhooks-id}.json. operations: - method: GET name: getwebhook description: Get webhook call: fulcrum-webhooks.getwebhook outputParameters: - type: object mapping: $. - method: PUT name: updatewebhook description: Update webhook call: fulcrum-webhooks.updatewebhook with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletewebhook description: Delete webhook call: fulcrum-webhooks.deletewebhook outputParameters: - type: object mapping: $. - type: mcp namespace: fulcrum-webhooks-mcp port: 9090 transport: http description: MCP adapter for Fulcrum API — Webhooks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-webhooks description: List webhooks hints: readOnly: true destructive: false idempotent: true call: fulcrum-webhooks.listwebhooks outputParameters: - type: object mapping: $. - name: create-webhook description: Create webhook hints: readOnly: false destructive: false idempotent: false call: fulcrum-webhooks.createwebhook with: body: tools.body outputParameters: - type: object mapping: $. - name: get-webhook description: Get webhook hints: readOnly: true destructive: false idempotent: true call: fulcrum-webhooks.getwebhook outputParameters: - type: object mapping: $. - name: update-webhook description: Update webhook hints: readOnly: false destructive: false idempotent: true call: fulcrum-webhooks.updatewebhook with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-webhook description: Delete webhook hints: readOnly: false destructive: true idempotent: true call: fulcrum-webhooks.deletewebhook outputParameters: - type: object mapping: $.