WAB2C LogoWAB2C
DevelopersSDK Libraries

SDK Libraries

Official client libraries for Node.js, Python, PHP, and Laravel. Full TypeScript support, async operations, and webhook helpers included.

Node.js SDK

Full TypeScript support, Promise-based API, works with Node.js 18+

npm install @wab2c/sdk
  • TypeScript definitions
  • Auto-retry on errors
  • Webhook verification helpers
  • ESM & CJS support

Python SDK

Async/await support, type hints, works with Python 3.9+

pip install wab2c
  • Type hints
  • Async support
  • Auto pagination
  • Django/Flask helpers

PHP SDK

PSR-18 compatible, works with PHP 8.1+

composer require wab2c/sdk
  • PSR-18 HTTP client
  • Laravel integration
  • Guzzle support
  • Webhook validation

Laravel Helper

First-party Laravel package with facades, jobs, and notifications

composer require wab2c/laravel
  • Service provider
  • Notification channel
  • Queue jobs
  • Artisan commands

Quick Example

Node.js / TypeScript
import { WAB2C } from '@wab2c/sdk';

const client = new WAB2C({
  apiKey: process.env.WAB2C_API_KEY!,
  phoneNumberId: process.env.PHONE_NUMBER_ID!
});

// Send a template message
const response = await client.messages.sendTemplate({
  to: '923300003097', // Updated phone number
  template: {
    name: 'order_confirmation',
    language: { code: 'en' },
    components: [
      {
        type: 'body',
        parameters: [
          { type: 'text', text: 'ORD-12345' },
          { type: 'currency', currency: { code: 'PKR', amount: 5500 } }
        ]
      }
    ]
  }
});

console.log('Message ID:', response.messageId);

Need a different language?

Use our REST API directly or let us know what SDK you need.

Need Help?

Chat with our WAB2C experts
Get instant answers about WhatsApp API,
pricing, and features.

Available 24/7 • Response within 5 minutes

Chat with us