WhatsApp · Capability

WhatsApp Cloud API — Messages

WhatsApp Cloud API — Messages. 1 operations. Lead operation: WhatsApp Send a Message. Self-contained Naftiko capability covering one Whatsapp business surface.

Run with Naftiko WhatsappMessages

What You Can Do

POST
Sendmessage — WhatsApp Send a Message
/v1/{phone-number-id}/messages

MCP Tools

whatsapp-send-message

WhatsApp Send a Message

Capability Spec

cloud-messages.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WhatsApp Cloud API — Messages
  description: 'WhatsApp Cloud API — Messages. 1 operations. Lead operation: WhatsApp Send a Message. Self-contained Naftiko
    capability covering one Whatsapp business surface.'
  tags:
  - Whatsapp
  - Messages
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WHATSAPP_API_KEY: WHATSAPP_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-messages
    baseUri: https://graph.facebook.com/v21.0
    description: WhatsApp Cloud API — Messages business capability. Self-contained, no shared references.
    resources:
    - name: phone-number-id-messages
      path: /{phone-number-id}/messages
      operations:
      - name: sendmessage
        method: POST
        description: WhatsApp Send a Message
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.WHATSAPP_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-messages-rest
    port: 8080
    description: REST adapter for WhatsApp Cloud API — Messages. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/{phone-number-id}/messages
      name: phone-number-id-messages
      description: REST surface for phone-number-id-messages.
      operations:
      - method: POST
        name: sendmessage
        description: WhatsApp Send a Message
        call: cloud-messages.sendmessage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-messages-mcp
    port: 9090
    transport: http
    description: MCP adapter for WhatsApp Cloud API — Messages. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: whatsapp-send-message
      description: WhatsApp Send a Message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-messages.sendmessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.