naftiko: 1.0.0-alpha2 info: label: Leaf Agriculture Leaf API — API Reference > Alerts description: 'Leaf Agriculture Leaf API — API Reference > Alerts. 4 operations. Lead operation: Leaf Agriculture Register a webhook. Self-contained Naftiko capability covering one Leaf Agriculture business surface.' tags: - Leaf Agriculture - API Reference > Alerts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LEAF_AGRICULTURE_API_KEY: LEAF_AGRICULTURE_API_KEY capability: consumes: - type: http namespace: leaf-agriculture-api-reference-alerts baseUri: '' description: Leaf Agriculture Leaf API — API Reference > Alerts business capability. Self-contained, no shared references. resources: - name: services-alerts-api-alerts-webhooks path: /services/alerts/api/alerts/webhooks operations: - name: post method: POST description: Leaf Agriculture Register a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Authorization in: header type: string - name: body in: body type: object description: Request body (JSON). required: false - name: get method: GET description: Leaf Agriculture Get all webhooks outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Authorization in: header type: string - name: services-alerts-api-alerts-webhooks-webhook_id path: /services/alerts/api/alerts/webhooks/{webhook_id} operations: - name: get method: GET description: Leaf Agriculture Get a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Authorization in: header type: string - name: webhook_id in: path type: string required: true - name: delete method: DELETE description: Leaf Agriculture Delete a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Authorization in: header type: string - name: webhook_id in: path type: string required: true exposes: - type: rest namespace: leaf-agriculture-api-reference-alerts-rest port: 8080 description: REST adapter for Leaf Agriculture Leaf API — API Reference > Alerts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/services/alerts/api/alerts/webhooks name: services-alerts-api-alerts-webhooks description: REST surface for services-alerts-api-alerts-webhooks. operations: - method: POST name: post description: Leaf Agriculture Register a webhook call: leaf-agriculture-api-reference-alerts.post with: Content-Type: rest.Content-Type Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: GET name: get description: Leaf Agriculture Get all webhooks call: leaf-agriculture-api-reference-alerts.get with: Content-Type: rest.Content-Type Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/services/alerts/api/alerts/webhooks/{webhook-id} name: services-alerts-api-alerts-webhooks-webhook-id description: REST surface for services-alerts-api-alerts-webhooks-webhook_id. operations: - method: GET name: get description: Leaf Agriculture Get a webhook call: leaf-agriculture-api-reference-alerts.get with: Content-Type: rest.Content-Type Authorization: rest.Authorization webhook_id: rest.webhook_id outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Leaf Agriculture Delete a webhook call: leaf-agriculture-api-reference-alerts.delete with: Content-Type: rest.Content-Type Authorization: rest.Authorization webhook_id: rest.webhook_id outputParameters: - type: object mapping: $. - type: mcp namespace: leaf-agriculture-api-reference-alerts-mcp port: 9090 transport: http description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Alerts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: leaf-agriculture-register-webhook description: Leaf Agriculture Register a webhook hints: readOnly: false destructive: false idempotent: false call: leaf-agriculture-api-reference-alerts.post with: Content-Type: tools.Content-Type Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-all-webhooks description: Leaf Agriculture Get all webhooks hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-alerts.get with: Content-Type: tools.Content-Type Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-webhook description: Leaf Agriculture Get a webhook hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-alerts.get with: Content-Type: tools.Content-Type Authorization: tools.Authorization webhook_id: tools.webhook_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-delete-webhook description: Leaf Agriculture Delete a webhook hints: readOnly: false destructive: true idempotent: true call: leaf-agriculture-api-reference-alerts.delete with: Content-Type: tools.Content-Type Authorization: tools.Authorization webhook_id: tools.webhook_id outputParameters: - type: object mapping: $.