WAHooks

Introduction

Cloud-hosted WhatsApp API with managed webhooks

WAHooks is a cloud-hosted WhatsApp API that lets you send messages, receive real-time webhooks, and manage WhatsApp connections — without running any infrastructure yourself.

Quick example

import { WAHooks } from '@wahooks/sdk';

const client = new WAHooks({ apiKey: 'wh_...' });

// Send a message
await client.sendMessage(connectionId, '1234567890@s.whatsapp.net', 'Hello!');

// Set up a webhook for incoming messages
await client.createWebhook(connectionId, 'https://your-server.com/webhook');
from wahooks import WAHooks

client = WAHooks(api_key="wh_...")

# Send a message
client.send_message(connection_id, chat_id="1234567890@s.whatsapp.net", text="Hello!")

# Set up a webhook for incoming messages
client.create_webhook(connection_id, url="https://your-server.com/webhook")
# Send a message
curl -X POST https://api.wahooks.com/api/connections/CONNECTION_ID/send \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{"chatId": "1234567890@s.whatsapp.net", "text": "Hello!"}'

# Create a webhook
curl -X POST https://api.wahooks.com/api/connections/CONNECTION_ID/webhooks \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{"url": "https://your-server.com/webhook", "events": ["*"]}'

How it works

Connect a WhatsApp number

Create a connection and scan a QR code with WhatsApp to link your account. WAHooks provisions a dedicated cloud session that stays connected 24/7.

Configure webhooks

Point webhook URLs at your server. When messages arrive, WAHooks delivers them as signed HTTP POST requests with automatic retries.

Build your app

Use the TypeScript or Python SDK to send messages, fetch chats, and manage connections. Or call the REST API directly.

Why WAHooks

Install

npm install @wahooks/sdk
pip install wahooks
curl -fsSL https://wahooks.com/install | bash
brew install dhruvyad/tap/wahooks

Next steps

On this page