naftiko: 1.0.0-alpha2 info: label: WhatsApp Flows API — Lifecycle description: 'WhatsApp Flows API — Lifecycle. 2 operations. Lead operation: WhatsApp Deprecate Flow. Self-contained Naftiko capability covering one Whatsapp business surface.' tags: - Whatsapp - Lifecycle created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WHATSAPP_API_KEY: WHATSAPP_API_KEY capability: consumes: - type: http namespace: flows-lifecycle baseUri: https://graph.facebook.com/v21.0 description: WhatsApp Flows API — Lifecycle business capability. Self-contained, no shared references. resources: - name: flow-id-deprecate path: /{flow-id}/deprecate operations: - name: deprecateflow method: POST description: WhatsApp Deprecate Flow outputRawFormat: json outputParameters: - name: result type: object value: $. - name: flow-id-publish path: /{flow-id}/publish operations: - name: publishflow method: POST description: WhatsApp Publish Flow outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.WHATSAPP_API_KEY}}' exposes: - type: rest namespace: flows-lifecycle-rest port: 8080 description: REST adapter for WhatsApp Flows API — Lifecycle. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{flow-id}/deprecate name: flow-id-deprecate description: REST surface for flow-id-deprecate. operations: - method: POST name: deprecateflow description: WhatsApp Deprecate Flow call: flows-lifecycle.deprecateflow outputParameters: - type: object mapping: $. - path: /v1/{flow-id}/publish name: flow-id-publish description: REST surface for flow-id-publish. operations: - method: POST name: publishflow description: WhatsApp Publish Flow call: flows-lifecycle.publishflow outputParameters: - type: object mapping: $. - type: mcp namespace: flows-lifecycle-mcp port: 9090 transport: http description: MCP adapter for WhatsApp Flows API — Lifecycle. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: whatsapp-deprecate-flow description: WhatsApp Deprecate Flow hints: readOnly: false destructive: false idempotent: false call: flows-lifecycle.deprecateflow outputParameters: - type: object mapping: $. - name: whatsapp-publish-flow description: WhatsApp Publish Flow hints: readOnly: false destructive: false idempotent: false call: flows-lifecycle.publishflow outputParameters: - type: object mapping: $.