brevo · Capability

Brevo WhatsApp API — WhatsApp Templates

Brevo WhatsApp API — WhatsApp Templates. 3 operations. Lead operation: Create a WhatsApp template. Self-contained Naftiko capability covering one Brevo business surface.

Run with Naftiko BrevoWhatsApp Templates

What You Can Do

POST
Createwhatsapptemplate — Create a WhatsApp template
/v1/whatsappcampaigns/template
GET
Listwhatsapptemplates — Return all WhatsApp templates
/v1/whatsappcampaigns/template-list
POST
Sendwhatsapptemplateforapproval — Send a WhatsApp template for approval
/v1/whatsappcampaigns/template/approval/{templateid}

MCP Tools

create-whatsapp-template

Create a WhatsApp template

return-all-whatsapp-templates

Return all WhatsApp templates

read-only idempotent
send-whatsapp-template-approval

Send a WhatsApp template for approval

Capability Spec

whatsapp-whatsapp-templates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Brevo WhatsApp API — WhatsApp Templates
  description: 'Brevo WhatsApp API — WhatsApp Templates. 3 operations. Lead operation: Create a WhatsApp template. Self-contained
    Naftiko capability covering one Brevo business surface.'
  tags:
  - Brevo
  - WhatsApp Templates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BREVO_API_KEY: BREVO_API_KEY
capability:
  consumes:
  - type: http
    namespace: whatsapp-whatsapp-templates
    baseUri: https://api.brevo.com/v3
    description: Brevo WhatsApp API — WhatsApp Templates business capability. Self-contained, no shared references.
    resources:
    - name: whatsappCampaigns-template
      path: /whatsappCampaigns/template
      operations:
      - name: createwhatsapptemplate
        method: POST
        description: Create a WhatsApp template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: whatsappCampaigns-template-list
      path: /whatsappCampaigns/template-list
      operations:
      - name: listwhatsapptemplates
        method: GET
        description: Return all WhatsApp templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: whatsappCampaigns-template-approval-templateId
      path: /whatsappCampaigns/template/approval/{templateId}
      operations:
      - name: sendwhatsapptemplateforapproval
        method: POST
        description: Send a WhatsApp template for approval
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: templateId
          in: path
          type: integer
          description: Unique identifier of the template to submit for approval.
          required: true
    authentication:
      type: apikey
      key: api-key
      value: '{{env.BREVO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: whatsapp-whatsapp-templates-rest
    port: 8080
    description: REST adapter for Brevo WhatsApp API — WhatsApp Templates. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/whatsappcampaigns/template
      name: whatsappcampaigns-template
      description: REST surface for whatsappCampaigns-template.
      operations:
      - method: POST
        name: createwhatsapptemplate
        description: Create a WhatsApp template
        call: whatsapp-whatsapp-templates.createwhatsapptemplate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/whatsappcampaigns/template-list
      name: whatsappcampaigns-template-list
      description: REST surface for whatsappCampaigns-template-list.
      operations:
      - method: GET
        name: listwhatsapptemplates
        description: Return all WhatsApp templates
        call: whatsapp-whatsapp-templates.listwhatsapptemplates
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/whatsappcampaigns/template/approval/{templateid}
      name: whatsappcampaigns-template-approval-templateid
      description: REST surface for whatsappCampaigns-template-approval-templateId.
      operations:
      - method: POST
        name: sendwhatsapptemplateforapproval
        description: Send a WhatsApp template for approval
        call: whatsapp-whatsapp-templates.sendwhatsapptemplateforapproval
        with:
          templateId: rest.templateId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: whatsapp-whatsapp-templates-mcp
    port: 9090
    transport: http
    description: MCP adapter for Brevo WhatsApp API — WhatsApp Templates. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-whatsapp-template
      description: Create a WhatsApp template
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: whatsapp-whatsapp-templates.createwhatsapptemplate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: return-all-whatsapp-templates
      description: Return all WhatsApp templates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whatsapp-whatsapp-templates.listwhatsapptemplates
      outputParameters:
      - type: object
        mapping: $.
    - name: send-whatsapp-template-approval
      description: Send a WhatsApp template for approval
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: whatsapp-whatsapp-templates.sendwhatsapptemplateforapproval
      with:
        templateId: tools.templateId
      outputParameters:
      - type: object
        mapping: $.