naftiko: 1.0.0-alpha2 info: label: Lago API documentation — Webhook_endpoints description: 'Lago API documentation — Webhook_endpoints. 5 operations. Lead operation: Lago Create a webhook_endpoint. Self-contained Naftiko capability covering one Lago business surface.' tags: - Lago - Webhook_endpoints created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LAGO_API_KEY: LAGO_API_KEY capability: consumes: - type: http namespace: lago-webhook-endpoints baseUri: https://api.getlago.com/api/v1 description: Lago API documentation — Webhook_endpoints business capability. Self-contained, no shared references. resources: - name: webhook_endpoints path: /webhook_endpoints operations: - name: createwebhookendpoint method: POST description: Lago Create a webhook_endpoint outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: findallwebhookendpoints method: GET description: Lago List all webhook endpoints outputRawFormat: json outputParameters: - name: result type: object value: $. - name: webhook_endpoints-lago_id path: /webhook_endpoints/{lago_id} operations: - name: updatewebhookendpoint method: PUT description: Lago Update a webhook endpoint outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: findwebhookendpoint method: GET description: Lago Retrieve a webhook endpoint outputRawFormat: json outputParameters: - name: result type: object value: $. - name: destroywebhookendpoint method: DELETE description: Lago Delete a webhook endpoint outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.LAGO_API_KEY}}' exposes: - type: rest namespace: lago-webhook-endpoints-rest port: 8080 description: REST adapter for Lago API documentation — Webhook_endpoints. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/webhook-endpoints name: webhook-endpoints description: REST surface for webhook_endpoints. operations: - method: POST name: createwebhookendpoint description: Lago Create a webhook_endpoint call: lago-webhook-endpoints.createwebhookendpoint with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: findallwebhookendpoints description: Lago List all webhook endpoints call: lago-webhook-endpoints.findallwebhookendpoints outputParameters: - type: object mapping: $. - path: /v1/webhook-endpoints/{lago-id} name: webhook-endpoints-lago-id description: REST surface for webhook_endpoints-lago_id. operations: - method: PUT name: updatewebhookendpoint description: Lago Update a webhook endpoint call: lago-webhook-endpoints.updatewebhookendpoint with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: findwebhookendpoint description: Lago Retrieve a webhook endpoint call: lago-webhook-endpoints.findwebhookendpoint outputParameters: - type: object mapping: $. - method: DELETE name: destroywebhookendpoint description: Lago Delete a webhook endpoint call: lago-webhook-endpoints.destroywebhookendpoint outputParameters: - type: object mapping: $. - type: mcp namespace: lago-webhook-endpoints-mcp port: 9090 transport: http description: MCP adapter for Lago API documentation — Webhook_endpoints. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: lago-create-webhook-endpoint description: Lago Create a webhook_endpoint hints: readOnly: false destructive: false idempotent: false call: lago-webhook-endpoints.createwebhookendpoint with: body: tools.body outputParameters: - type: object mapping: $. - name: lago-list-all-webhook-endpoints description: Lago List all webhook endpoints hints: readOnly: true destructive: false idempotent: true call: lago-webhook-endpoints.findallwebhookendpoints outputParameters: - type: object mapping: $. - name: lago-update-webhook-endpoint description: Lago Update a webhook endpoint hints: readOnly: false destructive: false idempotent: true call: lago-webhook-endpoints.updatewebhookendpoint with: body: tools.body outputParameters: - type: object mapping: $. - name: lago-retrieve-webhook-endpoint description: Lago Retrieve a webhook endpoint hints: readOnly: true destructive: false idempotent: true call: lago-webhook-endpoints.findwebhookendpoint outputParameters: - type: object mapping: $. - name: lago-delete-webhook-endpoint description: Lago Delete a webhook endpoint hints: readOnly: false destructive: true idempotent: true call: lago-webhook-endpoints.destroywebhookendpoint outputParameters: - type: object mapping: $.