Documentation Index
Fetch the complete documentation index at: https://docs.wazzapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Node.js SDK
The official Node.js and TypeScript SDK gives you a typed client for the public WazzAPI surface. Use it to:- send direct WhatsApp messages
- pair SDK usage with the public API for device inventory and sender selection
- manage contacts, groups, and templates
- verify signed WazzAPI webhook deliveries
- download and decrypt WhatsApp media payloads
Package
Install the published package from npm.
Source code
Browse the SDK repository, examples, and release history.
Requirements
- Node.js
20,22, or24 - a WazzAPI account
- a WazzAPI API key
Install
Choose the package manager that fits your stack:npm
bun
Configuration
The SDK useshttps://api.wazzapi.com by default.
For most integrations, you only need:
WAZZAPI_API_KEY
WAZZAPI_WEBHOOK_SECRET
.env
Quick start
Send a message
List devices
Verify incoming webhooks
UseWebhookHandler to validate the raw request body against the signature header before parsing JSON.
X-Wazzapi-SignatureX-Wazzapi-EventX-Wazzapi-Event-ID
- message events:
message.received,message.sent,message.delivered,message.read,message.failed - device events:
device.connected,device.disconnected
Handle API errors
When the API returns a non-success status, the SDK raisesWazzapiAPIError.
Example scripts
The SDK repository includes ready-to-run examples:examples/list-contacts.tsexamples/send-message.tsexamples/create-template.tsexamples/preview-template.tsexamples/verify-webhook.tsadvanced-examples/download-media.ts
Next steps
Quickstart
Create your API key and send your first live request.
API Reference
Explore endpoints and payloads behind the SDK methods.