naftiko: 1.0.0-alpha2 info: label: MessageBird Conversations API — Webhooks description: 'MessageBird Conversations API — Webhooks. 5 operations. Lead operation: List webhooks. Self-contained Naftiko capability covering one Messagebird business surface.' tags: - Messagebird - Webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MESSAGEBIRD_API_KEY: MESSAGEBIRD_API_KEY capability: consumes: - type: http namespace: conversations-webhooks baseUri: https://conversations.messagebird.com/v1 description: MessageBird Conversations API — Webhooks business capability. Self-contained, no shared references. resources: - name: webhooks path: /webhooks operations: - name: listwebhooks method: GET description: List webhooks outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createwebhook method: POST description: Create a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: webhooks-webhookId path: /webhooks/{webhookId} operations: - name: viewwebhook method: GET description: View a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatewebhook method: PATCH description: Update a 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 a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: '{{env.MESSAGEBIRD_API_KEY}}' placement: header exposes: - type: rest namespace: conversations-webhooks-rest port: 8080 description: REST adapter for MessageBird Conversations API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/webhooks name: webhooks description: REST surface for webhooks. operations: - method: GET name: listwebhooks description: List webhooks call: conversations-webhooks.listwebhooks outputParameters: - type: object mapping: $. - method: POST name: createwebhook description: Create a webhook call: conversations-webhooks.createwebhook with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/webhooks/{webhookid} name: webhooks-webhookid description: REST surface for webhooks-webhookId. operations: - method: GET name: viewwebhook description: View a webhook call: conversations-webhooks.viewwebhook outputParameters: - type: object mapping: $. - method: PATCH name: updatewebhook description: Update a webhook call: conversations-webhooks.updatewebhook with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletewebhook description: Delete a webhook call: conversations-webhooks.deletewebhook outputParameters: - type: object mapping: $. - type: mcp namespace: conversations-webhooks-mcp port: 9090 transport: http description: MCP adapter for MessageBird Conversations 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: conversations-webhooks.listwebhooks outputParameters: - type: object mapping: $. - name: create-webhook description: Create a webhook hints: readOnly: false destructive: false idempotent: false call: conversations-webhooks.createwebhook with: body: tools.body outputParameters: - type: object mapping: $. - name: view-webhook description: View a webhook hints: readOnly: true destructive: false idempotent: true call: conversations-webhooks.viewwebhook outputParameters: - type: object mapping: $. - name: update-webhook description: Update a webhook hints: readOnly: false destructive: false idempotent: true call: conversations-webhooks.updatewebhook with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-webhook description: Delete a webhook hints: readOnly: false destructive: true idempotent: true call: conversations-webhooks.deletewebhook outputParameters: - type: object mapping: $.