WWaSphere Docs

WaSphere Documentation

Self-hosted WhatsApp API platform — multi-session, webhook-driven, developer-first. Deploy in minutes with Docker.

WaSphere

WaSphere is an open-source, self-hosted WhatsApp API platform. Connect multiple WhatsApp numbers to your own server, send and receive all 14 message types through a clean REST API, and push real-time events to your systems via signed webhooks — with zero per-message fees and zero vendor lock-in.

MIT Licensed. The full platform — WA Server, Dashboard API, and Dashboard UI — is open source and on GitHub. You own your data, your sessions, and your infrastructure.

How it works

WaSphere has three layers that work together:

1. WA Server (port 3001) — A NestJS service that maintains persistent WhatsApp Web connections using the Baileys library. It manages QR-based pairing, session state, message queuing, and anti-ban controls. All Baileys code is isolated here — nothing else touches it.

2. Dashboard API (port 3000) — A NestJS REST API that your applications talk to. It authenticates via API keys, routes commands to the WA Server over an internal RPC channel, writes audit logs to PostgreSQL, processes async jobs through Redis + BullMQ, and fires HMAC-signed webhooks to your endpoints when events occur.

3. Dashboard UI (port 13004) — A Next.js web interface for managing sessions, API keys, webhooks, and viewing message history. Not required for programmatic use — the REST API is fully self-sufficient.

Supporting services: PostgreSQL 16 (persistent storage), Redis 7 (queues + cache), Traefik (reverse proxy + automatic Let's Encrypt SSL).


Start here


Core concepts


Guides


Operations


At a glance

ComponentTechnologyPort
WA ServerNestJS · Baileys 6.7.213001
Dashboard APINestJS · Prisma · BullMQ3000
Dashboard UINext.js (App Router)13004
DatabasePostgreSQL 165432
Queue / CacheRedis 76379
Reverse ProxyTraefik v380 / 443

Use a VPS, not a home connection. WhatsApp's network requires a stable outbound IP. Running WaSphere on a residential broadband connection with a dynamic IP significantly increases the chance of session bans. A $5/month VPS (Hetzner, DigitalOcean, Vultr) is sufficient for most workloads.

On this page