OpenWA connects unofficial WhatsApp clients to a NestJS API with multi-session support, webhooks, and a React dashboard. Storage, database, cache, and engine adapters are chosen via configuration.
Overview
OpenWA is a WhatsApp API gateway for developers who want to host their own messaging integration. It exposes REST endpoints for sessions, chats, groups, media, and webhooks, alongside a web dashboard for API keys, session management, and operational views.
Architecture emphasizes swappable adapters: SQLite or PostgreSQL for persistence, local disk or S3-compatible storage for media, optional Redis for queues and rate limits, and a choice of whatsapp-web.js (headless Chromium) or baileys (WebSocket) per deployment. Docker Compose profiles support postgres, redis, minio, or full stacks.
Authentication supports admin, operator, and viewer API keys with optional scopes limiting sessions or individual chats, which helps shared accounts where automation should not see every conversation. Real-time events can flow over WebSocket with matching scope checks.
Upstream documentation stresses unofficial-client risk: account restrictions are possible, engine trade-offs between memory use and detection profiles, send pacing and rate controls, and guidance to prefer Meta's official Cloud API for regulated production messaging. n8n community nodes, SDKs in several languages, and a plugin hook system extend the gateway without forking core code.
Key features
- Multi-session WhatsApp REST API
- React management dashboard
- HMAC-signed webhooks
- Scoped operator and viewer keys
- whatsapp-web.js or baileys engines
- PostgreSQL or SQLite storage
- S3 or local media backends
- Optional Redis queues and limits
Use cases
- Self-hosted WhatsApp automation
- Customer alert and OTP messaging
- n8n workflow integrations
- Multi-tenant chat bots on one host
- Internal tooling over personal WhatsApp numbers