WhatsApp · Capability

WhatsApp Business Management API — Phone Numbers

WhatsApp Business Management API — Phone Numbers. 1 operations. Lead operation: WhatsApp List Phone Numbers. Self-contained Naftiko capability covering one Whatsapp business surface.

Run with Naftiko WhatsappPhone Numbers

What You Can Do

GET
Listphonenumbers — WhatsApp List Phone Numbers
/v1/{waba-id}/phone-numbers

MCP Tools

whatsapp-list-phone-numbers

WhatsApp List Phone Numbers

read-only idempotent

Capability Spec

business-management-phone-numbers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WhatsApp Business Management API — Phone Numbers
  description: 'WhatsApp Business Management API — Phone Numbers. 1 operations. Lead operation: WhatsApp List Phone Numbers.
    Self-contained Naftiko capability covering one Whatsapp business surface.'
  tags:
  - Whatsapp
  - Phone Numbers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WHATSAPP_API_KEY: WHATSAPP_API_KEY
capability:
  consumes:
  - type: http
    namespace: business-management-phone-numbers
    baseUri: https://graph.facebook.com/v21.0
    description: WhatsApp Business Management API — Phone Numbers business capability. Self-contained, no shared references.
    resources:
    - name: waba-id-phone_numbers
      path: /{waba-id}/phone_numbers
      operations:
      - name: listphonenumbers
        method: GET
        description: WhatsApp List Phone Numbers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: string
          description: Comma-separated fields to return
        - name: limit
          in: query
          type: integer
          description: Pagination limit
        - name: after
          in: query
          type: string
          description: Cursor for forward pagination
        - name: before
          in: query
          type: string
          description: Cursor for backward pagination
    authentication:
      type: bearer
      token: '{{env.WHATSAPP_API_KEY}}'
  exposes:
  - type: rest
    namespace: business-management-phone-numbers-rest
    port: 8080
    description: REST adapter for WhatsApp Business Management API — Phone Numbers. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/{waba-id}/phone-numbers
      name: waba-id-phone-numbers
      description: REST surface for waba-id-phone_numbers.
      operations:
      - method: GET
        name: listphonenumbers
        description: WhatsApp List Phone Numbers
        call: business-management-phone-numbers.listphonenumbers
        with:
          fields: rest.fields
          limit: rest.limit
          after: rest.after
          before: rest.before
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: business-management-phone-numbers-mcp
    port: 9090
    transport: http
    description: MCP adapter for WhatsApp Business Management API — Phone Numbers. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: whatsapp-list-phone-numbers
      description: WhatsApp List Phone Numbers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: business-management-phone-numbers.listphonenumbers
      with:
        fields: tools.fields
        limit: tools.limit
        after: tools.after
        before: tools.before
      outputParameters:
      - type: object
        mapping: $.