Package Information
Available Nodes
Documentation generating…
Documentation
n8n-nodes-wasaas
An n8n community node package for Wasaas — an unofficial, session-based WhatsApp API. Send text/image/document/bulk WhatsApp messages, validate phone numbers, check session status, and react to real Wasaas webhooks (signed, live in production) from any n8n workflow.
Status: BUILT, NOT YET PUBLISHED TO NPM. The package is 100% ready to publish — build, lint and
npm packall pass clean — but publishing is blocked on the maintainer's ownnpm login. See Publishing.
What this is built against
This node talks to Wasaas's real, existing public API (https://wasaas.org/api/v1), verified directly against the moatazkhaled93-prog/whatsapp-saas source and public/openapi.json, and against the live webhook docs at wasaas.org/docs#webhooks — nothing here is a guessed or invented shape.
| Node action | Wasaas endpoint | Notes |
|---|---|---|
| Message → Send Text | POST /messages |
|
| Message → Send Image | POST /messages/image |
Public image URL only |
| Message → Send Document | POST /messages/document |
Node reads an n8n binary input and base64-encodes it, since Wasaas only accepts base64, not a URL, for documents |
| Message → Send Bulk | POST /messages/bulk |
Up to 500 recipients, Wasaas-side delay between sends |
| Session → List Sessions | GET /sessions |
|
| Session → Check Session Status | GET /sessions (filtered client-side) |
Wasaas has no single-session status endpoint on the public API — this operation lists all sessions and matches on Session ID locally |
| Session → Validate Number | POST /check-number |
Real endpoint — "has_whatsapp" check |
| Wasaas Trigger (webhook) | Real signed webhook delivery | Live in production — see below |
Webhooks are live
Wasaas ships real, signed outbound webhook delivery: three event types (message.received, message.status, session.status_changed), Stripe-style X-Wasaas-Signature: t=<unix>,v1=<hmac> signing, SSRF-protected URLs, retries with backoff, and a delivery log in the dashboard. The Wasaas Trigger node included here verifies that signature (HMAC-SHA256 over the raw body, constant-time compare, 5-minute replay window) when you paste in the webhook's signing secret, and emits the real envelope ({ id, type, created_at, data }) to the rest of your workflow. See Credentials setup and Webhooks below.
Installation
Not yet on npm — see Publishing. Once published:
npm install n8n-nodes-wasaas
Or in a self-hosted n8n instance: Settings → Community Nodes → Install, package name n8n-nodes-wasaas.
For local development against this repo before publishing, npm link it into your n8n custom-nodes directory, or copy dist/ into ~/.n8n/custom/.
Credentials setup (Auth)
- Sign up at wasaas.org — 7-day free trial, no card.
- Go to API Keys and click Create API Key. Copy the key — it starts with
wsa_and is shown only once. - In n8n, create a new credential of type Wasaas API:
- API Key: paste the
wsa_...key. - Base URL: leave as
https://wasaas.org/api/v1unless you run a self-hosted/white-labelled instance.
- API Key: paste the
- Click Test. This calls
GET /sessions(a free, read-only call) — a green check confirms the key is valid and active.
Connect a WhatsApp number
Go to Sessions → Add Session in the Wasaas dashboard and scan the QR code with the WhatsApp number you want to send/receive from. Every action also needs this Session ID (e.g. customer-5-1) — get it from the Session → List Sessions operation, or from the dashboard's Sessions page. A session must be in connected status for sends to succeed.
Your first message
Add a Wasaas node, pick Resource: Message → Operation: Send Text, and fill in:
| Field | Value |
|---|---|
| Session ID | customer-5-1 |
| To | 966501234567 |
| Message | Hello from Wasaas! 👋 |
This is equivalent to the node internally calling:
curl -X POST https://wasaas.org/api/v1/messages \
-H "Authorization: Bearer wsa_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "session_id": "customer-5-1", "to": "966501234567", "message": "Hello from Wasaas!" }'
# { "success": true, "to": "966501234567", "status": "sent" }
Webhooks
Add a Wasaas Trigger node, activate the workflow to get its Production URL, then register that URL in the Wasaas dashboard under Customer → Webhooks. Wasaas immediately sends a one-time endpoint.verification ping (the node acknowledges it automatically) and shows you a signing secret once — paste it into the node's Webhook Signing Secret field so every delivery is verified before your workflow runs:
// What the node does under the hood (nodes/WasaasTrigger/WasaasTrigger.node.ts)
import { createHmac, timingSafeEqual } from 'crypto';
function verifyWasaasSignature(secret: string, rawBody: string, header: string, toleranceSeconds = 300): boolean {
const parts = Object.fromEntries(header.split(',').map((kv) => kv.split('=')));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const a = Buffer.from(expected, 'hex');
const b = Buffer.from(parts.v1 || '', 'hex');
return a.length === b.length && timingSafeEqual(a, b);
}
Each delivery's data arrives in the node's output exactly as sent, inside the real envelope:
{
"id": "3f2a2e9e-...-unique-per-event",
"type": "message.status",
"created_at": "2026-11-08T12:00:00.000Z",
"data": { "session_id": "customer-5-1", "to": "966501234567", "status": "sent" }
}
Use id as your idempotency key — Wasaas retries a failed delivery up to 5 times with backoff, and the same id is reused on every retry of the same event. Use the node's Event Filter to only run the workflow for specific event types.
Get started
Free 7-day trial, no card required →
Full API reference, rate limits, error codes and the webhook spec: wasaas.org/docs
Error handling
The node maps Wasaas's real error responses to actionable messages instead of a bare HTTP code:
- 401 → API key invalid/revoked — points you back to the dashboard to issue a new one.
- 404 → Session not found — the Session ID doesn't belong to this account or was mistyped.
- 429 → Monthly message or API-call quota exceeded for the account's plan. Wasaas has no documented retry/back-off or
Retry-Afterheader for this, so it is reported as a quota problem, not a transient rate limit to blindly retry. - 400 → Invalid input, with Wasaas's field-level validation details surfaced.
Enable Continue On Fail on the node to route failures to a separate output branch instead of stopping the workflow (see Example 1).
Example workflows
All three live in examples/ as importable n8n workflow JSON (Workflows → Import from File in n8n). They were built and reviewed statically against real n8n node-type names and the actions above; there was no live n8n instance in the environment they were built in to execute them end-to-end, so treat them as verified-by-inspection starting points, not load-tested flows.
- Form submission → WhatsApp confirmation — n8n Form Trigger collects a name + WhatsApp number, sends a text confirmation, and alerts an ops number on failure.
- CRM new-lead webhook → WhatsApp to lead — a CRM's outgoing webhook posts a new lead, the number is normalised and validated with
check-numberbefore sending, and the CRM gets a JSON response back. - Generic inbound webhook → WhatsApp notification — any third-party webhook (monitoring, payments, another automation tool) triggers a WhatsApp alert to a fixed number. For a webhook coming from Wasaas itself, use the Wasaas Trigger node instead (see Webhooks above).
Screenshots
No GUI environment was available to render n8n and capture real screenshots in this session, so the node layout is described instead:
- Wasaas node: two top-level dropdowns, Resource (
Message/Session) and Operation, which changes the fields below it — e.g. pickingMessage → Send Textshows Session ID, To, Message; pickingSession → Validate Numbershows Session ID and Phone Number. - Wasaas Trigger node: a single webhook-style trigger node with a Notice box at the top explaining how to register its Production URL in the Wasaas dashboard, a Webhook Signing Secret field, and an Event Filter multi-select below it.
- Credential dialog: two fields, API Key (masked) and Base URL (pre-filled), with a Test button.
Publishing (not yet done)
This package has been built, type-checked (tsc --noEmit), compiled (npm run build), linted against n8n's own community-node ESLint rules (eslint-plugin-n8n-nodes-base) with zero errors, and npm pack --dry-run produces a clean 17-file tarball — but not published. The one remaining blocker is npm login:
npm loginwith the Wasaas/maintainer's own npm account (this environment has no working npm session —npm whoamireturns 401 — and will not attempt a login workaround).npm publishfrom this directory (version0.1.0is a valid first release).- If "verified" community-node status is wanted (optional — unverified nodes are still installable), submit via n8n's community node verification. Note: n8n requires packages submitted for verification after May 1, 2026 to be published from a GitHub Action with npm provenance, not a local
npm publish— a publish workflow would need to be added for that step specifically.
Nothing in this README or package.json claims "official n8n node" status, and it should stay that way until step 3 is actually completed and confirmed by n8n.
License
MIT