Self-host OpenWA
v0.29.1Open-source WhatsApp gateway with a swappable backend
$ docker run -d --stop-timeout 75 --name openwa-api -p 2785:2785 -v "$(pwd)/data:/app/data" rmyndharis/openwa:latest- Stars
- 16 612
- CPU
- 2 cores
- RAM
- 2 GB
- Storage
- 20 GB
- Port
- 2785 (REST API, bundled web dashboard, Swagger at /api/docs and Socket.IO, all on one port)
rmyndharis/openwaWhat is OpenWA?
OpenWA turns a WhatsApp account into an HTTP API you host yourself, for developers who want messaging without a per-seat vendor bill. It is MIT-licensed and free of any paid tier or feature gate. The gateway pairs a NestJS REST backend with an admin dashboard covering sessions, webhook endpoints and API-key issuance, and it holds more than one linked account live at a time. Adapters are chosen in configuration rather than code: SQLite or PostgreSQL for data, local disk or S3/MinIO for media, no cache or Redis, and either the headless-Chromium whatsapp-web.js engine or browser-free baileys. On the messaging side it covers text, media, reactions, edits, bulk sends, group and channel administration, labels, presence and call events, delivered through HMAC-signed webhook events you can filter, plus rate limiting, CIDR allowlists, audit trails and tokens narrowed to particular sessions or chats. AI agents can use the optional MCP endpoint, and an extension-plugin runtime (Chatwoot, Typebot and others) adds behaviour without touching core. Run it through a plain docker run command, the bundled Docker Compose files with optional postgres/redis/minio profiles, or the official Helm chart; API, dashboard and docs share port 2785. Because it speaks to WhatsApp through unofficial clients, every linked number faces non-zero restriction risk, and the project recommends a throwaway number, slow warm-up and a backup channel for critical traffic.
OpenWA alternatives
wacrmOpen-source, self-hosted WhatsApp CRM on the official Business API: shared inbox, Kanban pipelines, broadcasts, no-code automations, BYO-key AI replies.Comparewacrm with OpenWA
AppwriteThe open-source cloud for agents & devs. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime, WAF and moreCompareAppwrite with OpenWA
openclaw-coolifySelf-hosted AI agent platform connecting to WhatsApp, Telegram, Discord, Slack, and Teams with multi-agent sandboxing, skill registry, and secure credential management.Compareopenclaw-coolify with OpenWA
Open ResponsesA self-hosted, open-source server implementing the OpenAI Responses API specification with support for multiple LLM providers and the Agents SDK.CompareOpen Responses with OpenWA
opensoulOpenSoul is a self-hosted, open-source AI agent runtime across 30+ messaging channels with cross-surface task continuity and 50+ built-in skills.Compareopensoul with OpenWA
DeskcommCRMSelf-hosted MIT CRM where AI agents answer and qualify leads on WhatsApp, with kanban funnels, per-tenant RAG, automations and LGPD tooling. No paid tier.CompareDeskcommCRM with OpenWA
openclawA self-hosted, open-source AI assistant that operates on your own machines and plugs into 20+ messaging services with persistent memory and zero vendor lock-in.Compareopenclaw with OpenWA
AgentaOpen-source, self-hosted workspace where teams build AI agents by chatting, run them in Slack, Telegram or WhatsApp, and schedule automations on any LLM.CompareAgenta with OpenWA
All self-hosted alternatives to hosted WhatsApp API gateways →
Should you self-host OpenWA?
OpenWA scores 76/100 on selfhost.directory (how scoring works) and ranks #3 of 19 in API Management. It has 16 612 GitHub stars, +606 in the last 30 days.
It shipped 8 stable releases in the past year. The latest, v0.29.1, came out on 7 November 2026. New versions land roughly every 3 days.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is Kong (81/100, 44 365 stars). It scores higher overall, so compare the two before you pick. See OpenWA vs Kong side by side.
Features
- Bulk messaging
- Dual WhatsApp engine
- Group Management
- MCP server for AI agents
- Media messaging
- Multi-session support
- Per-session proxy support
- Pluggable storage backends
- Plugin System
- Prometheus MetricsOff by default (404) until METRICS_TOKEN is configured
- REST API
- Scoped API keys
- Web Dashboard
- Webhooks
- WhatsApp Channels
OpenWA README
Open Source WhatsApp API Gateway
Features • Quick Start • Docs • API • Contributing
How to install OpenWA
Install OpenWA with Docker
PORT, API_PORT, DATABASE_TYPE, REDIS_ENABLED, STORAGE_TYPE, ENGINE_TYPEmkdir -p data
docker run -d --stop-timeout 75 --name openwa-api -p 2785:2785 -v "$(pwd)/data:/app/data" rmyndharis/openwa:latest
Zero-config defaults: SQLite database, local media storage.
Install OpenWA with Docker Compose
DATABASE_TYPE, DATABASE_HOST, DATABASE_USERNAME, DATABASE_PASSWORD, REDIS_ENABLED, REDIS_HOST, STORAGE_TYPE, S3_ENDPOINT, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY# Clone and start
git clone https://github.com/rmyndharis/OpenWA.git
cd OpenWA
docker compose -f docker-compose.dev.yml up -d
# Basic production (SQLite, local storage)
docker compose up -d
# Also start the PostgreSQL container (configure it first, see below)
docker compose --profile postgres up -d
# Also start PostgreSQL, Redis and MinIO (configure them first, see below)
docker compose --profile full up -d
Optional profiles: postgres, redis, minio, full. Published image can replace the build via a docker-compose.override.yml using ghcr.io/rmyndharis/openwa:latest.
Install OpenWA with Helm
helm upgrade --install openwa ./charts/openwa \
--set secretEnv.API_MASTER_KEY='a-long-random-string'
Official chart under charts/openwa/ since v0.13.0; single-replica StatefulSet with a PVC for /app/data.
Install OpenWA with NPM
PORT, NODE_ENVgit clone https://github.com/rmyndharis/OpenWA.git
cd OpenWA
# Install the locked dependencies (includes dashboard)
npm ci
# Start API + Dashboard (config is auto-generated on first run)
npm run dev
Local development path; in dev the dashboard runs on its own Vite server at :2886.
How to configure OpenWA
NODE_ENV=productionCORE SETTINGSPORTPort the app binds to when run directly (bare metal / `npm run start:prod`). In the bundled Docker Compose the container always listens on 2785; the API_PORT below is only the HOST-published port. To run the image itself on another port, pass `-e PORT=...`: the image healthcheck never reads .env or data/.env.generated.API_PORT=2785Docker Compose only: the host-side port mapped to the container's 2785 (no effect on a bare-metal run).SERVE_DASHBOARDServe the bundled dashboard from the API process. Set false for an API-only deployment.LOG_LEVEL=info
OpenWA releases & version history
AI summary Forwarded messages now track forwarding scores
Added
- Mark a forwarded message with
isForwarded: trueand, when positive,forwardingScoreonmessage.receivedandmessage.senton both engines, and on the whatsapp-web.js chat history (#2029). Thanks @visualpathpaulpraksh.
Fixed
- Pin the next settled WhatsApp Web build from the registry read that named a logged-out page, so a second registry read that fails no longer leaves the session unpinned (#1997). Thanks @Mr4sR.
- Stop a Baileys session start from blocking the whole process for seconds to tens of seconds on default SQLite when the account has many stored chats it only ever sent to: the chat-name lookup scanned every stored incoming message instead of seeking by chat.
AI summary Fixed proxy auth and WhatsApp Web build selection
Changed
- The amd64 image's Chrome for Testing 156.0.8078.80 to 157.0.8103.38, picking up the browser security fixes released since; the arm64 image keeps the chromium package Debian ships.
Fixed
- A whatsapp-web.js session whose proxy asks for a username and password failed every start after the first with
net::ERR_INVALID_AUTH_CREDENTIALS, because WhatsApp Web's service worker, registered in the saved profile, took the page's requests out of reach of the proxy login; the page now ignores the service worker for such a session (#819). Thanks @gudge25 and @lHumanizado for the report. - Refuse a WhatsApp Web build whose registry page is the logged-out landing page and pin the next older settled build instead (up to three are tried, warning
web_version_html_rejected); every whatsapp-web.js session start used to fail withCannot read properties of null (reading 'Socket')until the process restarted (#1997). Thanks @ScalingMBA for the report.
Upgrade notes (behavior changes)
- The amd64 image moves from Chrome for Testing 156 to 157, so an amd64 rollback to 0.28.0 or earlier crosses a browser major and deletes the stored whatsapp-web.js logins unless
sessions/is restored from a backup taken before the first start on the new image (seedocs/11-operational-runbooks.md); Baileys sessions are unaffected.
AI summary Added receipts API and plugin ingress route deduplication
Added
- Add
GET /api/sessions/{sessionId}/messages/{chatId}/{messageId}/receipts, which lists who received, read and played a message the account sent on whatsapp-web.js (Baileys answers501), andmessages.receiptsin all five SDKs (#1748). Thanks @Purushotham-Prajapati-24, and @berodcdev for the request. - Plugin ingress routes can set
dedupBodyMismatchAsNewto treat a repeated delivery id with a different body as a new delivery; a mismatch is logged and counted inopenwa_ingress_dedup_body_mismatches_totaleither way.
Changed
- Log the page visibility, the H.264/AAC playback answer and the browser version when a whatsapp-web.js video send or video status post times out in WhatsApp Web's 20 second video load, and document how to read that timeout (#1902). Thanks @benjaminb10 for the report.
- The Docker image no longer ships the TypeScript compiler and ts-node, about 24 MiB less per architecture; nothing loads them at run time.
- Refuse
POST /api/sessionswith400for aconfigover 16384 bytes as JSON; the limit applies at creation, and a stored session above it still loads and takesPATCH /api/sessions/{sessionId}/config. - Answer
404, not400, for an id of letters, digits and hyphens (up to 128 characters) that is not a UUID and that no session has, including a session name, and say the routes take the id. SESSION_PROXY_TIMEOUT_MScovers only the first 4 MiB of a session owner's answer, so a larger one is no longer cut by it, and an owner failure once the relay of such an answer has begun cuts the connection instead of answering502.- Answer 400, before the session's engine is looked up, for an id that names no group on the group read, settings, subject, description, leave, invite code, participants and membership request routes and their MCP tools (such an id reached the engine and was reported as its refusal, 403 or 404), and give the engine the id as
<id>@g.us. - List a Baileys session's stored chats right after a restart, groups included, with their newest stored message as preview and time and the contact's pushname (#1978). Thanks @farresyh.
- Record a session's
lastActiveat most once every 30 seconds instead of on every message, so it can lag the latest message by up to that long. - A
PUT /api/plugins/{id}/configwrite to a built-in plugin merges nested objects into the stored config instead of replacing them, and anullclears a key at any depth. - Add a partial index on
status_updates.mediaPath, created by a migration when the gateway starts, for the status orphan sweep's lookups.
Fixed
- Install Trivy for the release and scheduled image scans from its GitHub release against a pinned SHA-256, since the action's own installer needs a host that no longer resolves.
- Stop storing, listing and announcing (
status.received) a whatsapp-web.js story that arrives already deleted, live or in the backfill made on connect. - Ignore a Baileys edit, delete, reaction or RSVP that carries a lid and the sender's own number when it names a message of another chat or author.
- Share one lid table lookup between the events of a chat when the gateway expands it for chat-restricted delivery (Redis fan-out on, or a chat-restricted socket connected to the node), and reuse a lookup that found a mapping for 5 seconds.
- Print no part of an
API_MASTER_KEYin the startup banner: the first boot names the key file, and later boots show no fingerprint of a key seeded from it by this release or still configured. - Hold Create and Save in the webhook form for a URL with whitespace,
<,>or an underscore in the host name, which the gateway refuses, and show the standard URL hint. - Drop the 00 exit code from international numbers of any length in the Message Tester, Number Checker and bulk recipients.
- Stop the new-chat privacy-id lookup when the API key is removed or replaced, the selected session changes or the panel is closed.
- Keep a search result that waits for the session list from overriding a session, chat or newer result chosen meanwhile, or from raising a notice after the page is left.
- End a search result's privacy-id phone lookups when the page is left or another session, chat or result is chosen.
- Report a Message Tester send that the gateway accepted with an empty message id as sent instead of failed.
- Show a stored plugin choice that the field no longer lists as the selected option, and a null choice as a blank one, so the form saves what it shows.
- Use the theme text and card colors for chart legends and tooltips so they stay readable in the light and dark themes.
- Keep the Infrastructure Save Configuration button clear of the notification stack.
- whatsapp-web.js: a reloaded page whose event listeners fail to attach is no longer counted as recovered, so the watchdog restarts the session instead of leaving it READY without inbound messages.
- whatsapp-web.js: an
auth timeoutor browser network error behind a SOCKS proxy URL with credentials now says inlastErrorthat Chromium cannot send them. - Metrics scrapes that arrive together share one render, so the cached event-loop delay no longer reads zero after an overlap.
- Treat the phone and lid forms of a chat as one contact in send pacing when the gateway holds a reported phone pairing for the lid, so replies and group adds for a contact known by its lid are no longer charged as new conversations.
- Keep the payload of a media send the pending reaper failed while it was in flight when the own-send echo already holds its message id.
- Answer
503, not500, when a transient database failure interrupts a read a start, stop or delete makes before it acts (the cap check, the ownership check, a delete's row read, the read after a refused claim); nothing was started, stopped or deleted. - Answer
503, not500, when a transient database failure interrupts the owner lookup a node withNODE_URLmakes before routing a session request; nothing was done. - Report
deliveredand thenreadthroughmessage.ackfor a Baileys group message once every member has received or read it, instead of leaving it atsent; a status post still stays atsent. - List a key seeded from
API_MASTER_KEYas(master key)instead of its first 12 characters; keys seeded by earlier releases keep their stored prefix until replaced. - Key Baileys chat writes and read receipts to the newest stored message of the account the session is linked to, so a session relinked to another number no longer names the previous account's messages.
- Warn when a session delete removes only a symlinked auth directory and leaves the WhatsApp login at its target, instead of logging it as purged.
- Report the chat id of a whatsapp-web.js
message.reactionas a string if WhatsApp Web sends it as an object. - Clear the stored body, media and metadata of a message deleted on whatsapp-web.js by its bare key id, which stayed in place before.
- Fold a whatsapp-web.js mention given as a padded, upper-case,
@s.whatsapp.net,:deviceor hosted id to the neutral id before it reaches WhatsApp Web, in text, media, sticker, reply and edit sends, as Baileys already does. - Cap the chat media and status orphan sweeps at 100,000 tracked files per pass, so a session delete or a retention run over a large archive no longer grows memory with the number of files left behind.
- Remove a status, with its media file, from
GET /status,GET /status/:idand the status media route when its poster deletes it, instead of serving it until it expires. - List a built-in Redis, MinIO or PostgreSQL under
removal.errorsinstead ofremoval.stoppedwhen a restart could not ask Docker for its container. - Keep a working directory
.envout of the e2e and unit boots, which read the environment their harness sets; a.envthat cannot be read still stops the boot, and the error names the file. - Stop the boot, naming the file, when
data/.env.generatedexists but cannot be read (a directory where a bind mount found no file, or a file the app user cannot open), instead of starting on the defaults without the database and storage settings saved there. - Stop the migration CLI, naming the file, when
.envordata/.env.generatedexists but cannot be read, instead of migrating without that file's settings. - Keep a Baileys receipt from another chat from advancing or announcing an own message whose row is still being written.
- Preview each Baileys chat from its own history message when two chats' messages share an id.
- Store a Baileys history-sync admin delete of the account's group message as the account's deleted message, and clear a member's own group message deleted in another history chunk.
- Make the forwarded-message spec wait for the ack to be stored instead of a fixed pause, so it no longer fails intermittently on the PostgreSQL lane.
- Stop announcing
message.ackfor the acks of whatsapp-web.js system notices, which are no longer delivered as messages. - Stop delivering whatsapp-web.js system notices (a changed security code, the encryption notice, business and broadcast notices) as
unknownmessages onmessage.receivedandmessage.sent, so they are no longer stored, passed to the message hooks or answered by automation rules (#1864). Thanks @dwimnofan. - Compile a chat-restricted key's allowlist once per request instead of once per chat id.
- Return keyboard focus to the chat list row, or the search field, when the open chat, channel or status is closed.
- Keep focus in the Number Checker phone field during and after a single check.
- Keep dialogs that open over the phone navigation drawer usable and release the page scroll lock when they close.
- Return keyboard focus to Save Configuration after the restart prompt is put off or a save is refused.
- JavaScript SDK:
client.request(),requestBytes()andbuildUrl()send the entries of aURLSearchParamsorMapquery instead of sending the request without them. - Allow typing time in queued plugin webhook dispatch while keeping inline and hook limits at five seconds.
- Synchronize plugin registry replacements before acknowledging required writes.
- Reject plugin storage keys longer than 184 UTF-8 bytes before writing files.
- Delay plugin missing-code warnings until all package directories have been scanned.
- Use .env PUPPETEER_HEADLESS and PUPPETEER_ARGS instead of defaults for omitted keys in existing partial puppeteer config on the next start after upgrade, without another save.
- Remove group and other access from existing plugin directories without granting owner permissions.
- Take any restored session id (letters, digits and hyphens, up to 128 characters) on the
/api/sessions/{sessionId}routes, which answered400for a non-UUID id and left a restored session impossible to stop, log out or delete; a restore refuses an archive whose session id is longer. - Relay a session owner's answer over 4 MiB as it arrives, so concurrent media downloads through another node no longer hold a full copy each in memory.
- Stop
GET status/{id}from returning the statuses of the phone before the first@for an id with a second@or for a group or channel id. - Refuse a group, channel, privacy or two-@ id, and a value with no digits, with 400 in the number check (REST and MCP), and query WhatsApp with the digits of the number only.
- Read the thumbnail, duration and waveform of a Baileys video or audio send, or a video or voice status, only after the recipient, quote and status recipients checks pass, so a refused send no longer spawns the ffmpeg and parser child processes.
- Make the dashboard restart-modal focus spec wait for the dialog to take focus and for the page to restore it instead of reading both at once, so it no longer fails intermittently.
- Refuse a Baileys retry receipt from another chat for a message received under a lid with its sender's number.
- Webhook writes refuse more than 27 events, and webhook and automation rule writes refuse id filter values over 128 characters.
- Stored webhook rows and backups past these limits are kept as they are; an edit that resends them is refused until they fit.
- Integration redrive reads one payload at a time, and an exhausted webhook replay budget keeps the event data on the failure row.
- Stop announcing and storing
readyfor a link the session's account binding refuses; the session goes straight tofailed. - Record a WhatsApp unlink that arrives after a stop, delete or shutdown retired the engine, or whose session read fails during shutdown, so another number can link the session.
- Stop a start right after a logout, or a reconnect after a WhatsApp unlink, from keeping the old number and refusing the account that scans next.
- Keep the account a reconnect attempt linked bound when that attempt then fails, so the retry refuses a different number.
- A request body with an array of more than 10,000 items, an object of more than 1,000 keys or more than 250,000 items and keys in all is refused with 400 before validation instead of holding the process for seconds to minutes; the data restore and routes that read the body without a DTO are exempt.
- An upload the in-flight body budget drops mid-stream is logged with its reason and counted as 408 or 503 in
http_requests_total. - Pretty log output escapes control characters, so a value holding a newline cannot start a forged log record.
GET /api/health/readyshares its database probes between concurrent requests and reuses the verdict for one second, so a flood no longer queues probes ahead of application queries on PostgreSQL.- A request whose client left while the gateway was working on it is counted as 499 in
http_requests_totalinstead of the status set before the handler ran. - Queue whatsapp-web.js label writes per chat whichever id names it, so adding two labels to one chat by its phone id and by its lid at the same time no longer removes one of them.
- Ignore a SIGHUP that arrives while a stop is already running, so a terminal closing during the teardown no longer cuts it short.
- Drain on SIGHUP like on SIGTERM and SIGINT, with the readiness 503, the request gate and the force-exit budget, also when the terminal that sent it has closed.
- Raise a WebAssembly out-of-bounds access as a catchable error instead of spinning the process.
- End the process on a crash in native code instead of leaving the gateway spinning at full CPU and answering nothing, so a restart policy brings it back.
- Leave SIGQUIT and SIGABRT to their default action, so they can take a core dump of a gateway whose event loop is blocked.
- Leave SIGUSR2 to Node, so
--report-on-signaland--heapsnapshot-signal=SIGUSR2write their file and no longer stop the gateway; name a writable directory such as/app/datawith--report-directoryor--diagnostic-dir. - Hold the pacing admission of a bulk item or product send for the usual window when the engine answers not-ready, unreachable or not found after the send may already have gone out, instead of handing it back at once.
- Keep the forwarded type and caption of a forward of a message the gateway has no stored copy of, instead of the
[Forwarded]placeholder. - Ignore a Baileys group delete of another member's message, or of the account's, from a member the group roster shows is not an admin.
- Keep the chat preview of a Baileys group message when a member known by a paired lid edits or deletes the message of a member known by a lid with no pairing.
Documentation
- The community integrations page lists
openwa-n8n-workflows, an import-ready n8n workflow that answersmessage.receivedwebhooks with a local AI model. Thanks @Abhishekrajpurohit. - The API reference says that whatsapp-web.js system notices are not messages.
- The Helm notes and the security guide say the admin key is read from the key file when
API_MASTER_KEYis set. - Explain that schema defaults remain stored across plugin updates.
- Explain how hooks and webhook handlers can start reply sends without awaiting them, with error handling.
- Describe plain-text storage and masked reads for retained integration instance secrets.
- Scope the ten second Baileys stored-chat read bound to PostgreSQL; on SQLite the read holds the event loop until it ends.
- The API reference says how to count the viewers of a Baileys status post from
message.receipt, and that a status post reports nodeliveredorreadack. - Explain redirect and blocked-destination delivery errors in the n8n troubleshooting guide.
- API reference and troubleshooting guide: a SOCKS proxy cannot log in on whatsapp-web.js; use a proxy that admits the gateway by IP or an HTTP or HTTPS proxy with credentials.
GET /api/infra/status:engine.webVersionis the build the gateway resolves for sessions to pin, not the build every session ran.GET /api/infra/status:engine.headlessandengine.browserArgsare the environment values; a stored whatsapp-web.js plugin config overrides them for sessions.- The in-flight body budget reservation ends once the body has been read, and the status label of
http_requests_totallists what a dropped or abandoned request counts as. .env.examplesays pooled clients must expire idle connections beforeKEEPALIVE_TIMEOUT_MS.- The scaling guide says that a node booting while a peer's lease has just lapsed resets that peer's session, and that only one node is supported.
- The operational runbooks list what each signal does to the gateway, the output directory Node's diagnostic flags need in the image, and the exit status a native crash leaves.
- Describe VIEWER avatar and metadata lookups alongside OPERATOR number and LID checks.
- Link SDK users to per-route role requirements and describe optional error fields.
- Use stable dependency file and symbol references in engine capability evidence.
- Explain resolved LID send addressing and limits of per-recipient receipt lists.
- State the glibc 2.34 requirement and startup remedies for Linux glibc source installs on x64/arm64.
- Describe PHP empty-response behavior for coalescing, nullable and required-body methods.
- The FAQ says that a media send by
urlholds its download in memory until the send finishes, and that nothing limits how many run at once. - The database design lists every step that still runs at boot on a SQLite database with
DATABASE_SYNCHRONIZE=true. - The development guidelines list
SearchModuleamong the global modules, and a check keeps the list equal to the source. - The API reference says where the app version is visible without a key.
- The security design and architecture diagrams no longer show an encryption layer the gateway does not have.
Dependencies
- Update
@aws-sdk/client-s3to 3.1160.0 andbullmqto 6.5.1 in the gateway. - Update
@tanstack/react-queryto 5.105.0,i18nextto 26.5.11,i18next-browser-languagedetectorto 8.2.3,lucide-reactto 1.65.0,react-i18nextto 17.1.9 andreact-router-domto 7.18.5 in the dashboard bundle. - Update
typescript-eslintto 8.72.1,guzzlehttp/guzzleto 8.3.1 in the PHP SDK lockfile andmaven-surefire-pluginto 3.6.1 in the Java SDK; these touch development and test setups only. - Update the transitive
@smithy/coreto 3.38.1, which npm no longer marks deprecated for a bug in custom logger data redaction; the gateway passes no custom logger to the AWS SDK.
Upgrade notes (behavior changes)
- A Baileys group message now produces
message.ackevents (delivered, thenread) and advances its stored status, which stayed atsentbefore; a webhook or socket client that expected no ack for a group message will receive them. The ack payload carries noisGroup, so a webhook filter onisGroupcannot tell them from direct ones; filter onkindorchatIdinstead. - The Docker image no longer contains
typescriptorts-node. A plugin that required either from the gateway'snode_moduleswithout bundling it must now ship its own copy. - After a restart, Baileys
GET /api/sessions/{sessionId}/chatsalso returns the chats with stored messages, and groups carry their newest message's time instead of0, so the list is longer and its pages change; a chat deleted on the phone before 0.27.0 or before an unlink is listed again while its messages are stored. - SIGQUIT, SIGABRT and a bare SIGUSR2 now end the process at once with no teardown; a process manager that restarts with SIGUSR2, such as nodemon's default, should send SIGTERM.
- SIGHUP now drains and exits 0 (1 on a failed or overrun teardown) instead of dying by SIGHUP, so Docker's on-failure restart policy no longer restarts after
docker kill -s HUP. POST /api/sessionsanswers400for aconfigover 16384 bytes as JSON; a stored session above it still loads and takesPATCH /api/sessions/{sessionId}/config.- An id of letters, digits and hyphens (up to 128 characters) that is not a UUID answers
404on the/api/sessions/{sessionId}routes when no session has it, where it answered400; a session restored under such an id can now be stopped, logged out and deleted. A data import refuses an archive that holds a session id longer than 128 characters, which it imported before. - A session start, stop or delete whose read before acting meets a transient database failure (a lost or refused connection, a lock, a connection limit), and a session request on a node with
NODE_URLwhose owner lookup does, answer503where they answered500; nothing was done, so the request can be repeated. SESSION_PROXY_TIMEOUT_MScovers only the first 4 MiB of a session owner's answer; a larger one, such as a media download through a node that does not own the session, is relayed as it arrives, and an owner that fails after that cuts the connection where it answered502.- The group read, settings, subject, description, leave, invite code, participants and membership request routes and their MCP tools answer
400, before the engine is asked, for an id that names no group, where the engine's refusal came back as403or404. - The number check (REST and MCP) answers
400for a group, channel, privacy or two-@ id and for a value with no digits, andGET /api/sessions/{sessionId}/status/{id}no longer returns the statuses of the phone before the first@for an id with a second@or for a group or channel id. - A request body with an array of more than 10,000 items, an object of more than 1,000 keys, or more than 250,000 items and keys in all answers
400before validation; the data import and routes that read the body without a DTO are exempt. http_requests_totalcounts a request whose client left while the gateway worked on it under499, and a request body the in-flight body budget drops under408or503, where it counted the first under the status set before the handler ran (usually 200 or 201) and the second as a 200 (a 500 on a multipart route): a dashboard that sums 2xx loses those requests and a 5xx alert sees the503drops.GET /api/health/readycan answer with a verdict up to one second old.- Webhook writes answer
400for more than 27 events, and webhook and automation rule writes for an id filter value over 128 characters; stored rows past these limits are kept, and an edit that resends them is refused until they fit. - The first boot with
API_MASTER_KEYset no longer prints it: the banner names the key file, and later boots show no fingerprint of it. A key seeded from it is listed as(master key)instead of its first 12 characters; keys seeded by earlier releases keep their stored prefix until they are replaced. - whatsapp-web.js system notices (a changed security code, the encryption notice, business and broadcast notices) are no longer delivered as
unknownmessages onmessage.receivedandmessage.sent, so they are no longer stored, passed to the message hooks or answered by automation rules, and their acks are no longer announced; rows stored earlier stay. - A WhatsApp unlink that arrives after a stop, delete or shutdown retired the engine, or whose session read fails during shutdown, is now recorded: it writes its audit row and sends
session.disconnected. A link the session's account binding refuses goes straight tofailedwithout asession.statusready. - A bulk item or product send that the engine refuses as not ready, unreachable or not found after the message may already have gone out keeps its pacing admission for 10 seconds, which can refuse one follow-up send near a cap that would have been admitted before.
- On Baileys, a group delete of another member's message, or of the account's, from a member the group roster shows is not an admin is ignored: the stored copy, the chat preview and
message.revokedare left alone. The roster comes from the cached group metadata (BAILEYS_GROUP_METADATA_CACHE_TTL_MS, 5 minutes by default, dropped on promote and demote events), so a delete from an admin whose promotion it has not seen is ignored until it refreshes. An edit, delete, reaction or RSVP that carries a lid and the sender's own number is ignored when it names a message of another chat or author, and so is such a retry receipt. PUT /api/plugins/{id}/configon a built-in plugin merges nested objects into the stored config instead of replacing them, and anullclears a key at any depth. A stored partialpuppeteeroverride takesPUPPETEER_HEADLESSandPUPPETEER_ARGSfrom the environment for the keys it omits, from the first start after the upgrade. Plugin storage keys longer than 184 UTF-8 bytes are rejected, and existing plugin directories lose group and other access.- The boot stops, naming the file, when
data/.env.generatedexists but cannot be read (a directory where a bind mount found no file, or a file the app user cannot open), where it started on the defaults without the settings saved there;npm run migration:runandmigration:run:prodstop when.envordata/.env.generatedcannot be read. - A session's
lastActiveis written at most once every 30 seconds instead of on every message, so it can lag the latest message by up to that long. - A status its poster deletes is removed from
GET /status,GET /status/:idand the status media route (which answers404) when the delete reaches the session, instead of being served until it expires.
Added
- Add
GET /api/sessions/{sessionId}/contacts/{number}/lid, which looks up the@lidWhatsApp holds for a phone number without sending a message and needs an OPERATOR key, andcontacts.lidin all five SDKs (#1969). Thanks @farresyh for the report. - Python SDK:
client.request()takes anidempotency_key.
Fixed
- Answer
GET /api/sessions/{sessionId}/contacts/{contactId}/phonefor a phone id from the id itself on whatsapp-web.js, which no longer asks WhatsApp whether the number exists and so no longer works as a number check for keys below OPERATOR. - Answer
503, not500, toGET /api/sessions/{sessionId}/contacts/check/{number}when WhatsApp rate-limits, refuses or drops the query on Baileys, or the whatsapp-web.js page does not answer in time. - Read a whatsapp-web.js group whose refresh fails one of WhatsApp Web's own invariants from the metadata the page already holds, so
GET /api/sessions/{sessionId}/groups/{groupId}and/labels/{labelId}/chatsno longer answer 404 for it, and the chat lookups behind its group setting, chat action, chat label and message routes use that metadata too (#1962). - Reload the active API key index after seeding the first admin key, so a failed first read no longer leaves body admission without it until the next refresh. Thanks @Purushotham-Prajapati-24.
- Stop sending
message.editedon the webhook and socket for an edit that reaches a message already deleted, for everyone or, throughPOST /api/sessions/{sessionId}/messages/delete, for this account only, which handed consumers new text for a message that was already gone. Thanks @rupeshreddynagolu. - Keep the
@lidand@s.whatsapp.netpreviews of one Baileys chat in step when a history-sync revoke, or a live edit or revoke, names the chat under the other id. - Keep a Baileys chat preview cleared when an edit reaches a message already deleted for everyone, so
GET /api/sessions/{sessionId}/chatsand the dashboard sidebar no longer show the deleted text. - Refuse a Baileys send or status post with
409, rather than sending on a replacement socket, when its connection changes during the media fetch, quote or recipient lookup, preview upload or product lookup; a send cut off by reconnect backoff now answers409, where it answered503. - Answer
503(not sent) instead of500for a Baileys product send whose catalog lookup is cut off by a closed connection, and hand back its pacing admission. - Stop an old engine's disconnect report, sent while a reconnect tears it down, from using up a second reconnect attempt.
- Record and announce a WhatsApp unlink whose session row could not be read when the session is stopped, logged out or deleted, or the gateway shuts down, instead of dropping it.
- Stop a disconnect read retry that is still re-reading from overwriting a session that has become READY and tearing down its recovered engine.
- Make a session delete wait for a logout that is still waiting on the session's initial status, instead of purging its data while the logout runs.
- Reject chat and group ids with more than one
@or an empty local part, in the API and in the API Keys form. - Pass the canonical
groupIdto the engine on the/groups/{groupId}/pictureroutes, which forwarded an upper-case, padded or device-suffixed id as sent. - Answer
404to a malformedchannelId, a bare@newsletteror an id with more than one@, on the channel delete, mute, unsubscribe, admin demote and owner transfer routes; demote and transfer passed any value to the engine, the others accepted such an id. - Answer
400to a booleanlimitinPOST /api/webhooks/delivery-failures/redriveinstead of redriving one delivery. - Retract the secrets of retired or rolled-back wildcard plugin instances from the plugin base config and
registry.jsonwhen an infrastructure backup is imported, on the node that runs the import. - Keep a valid key's
GET /api/healthcheck from freeing the limiter slot of a newer failed attempt. - Log an unreadable API key store on
GET /api/health, at most once a minute, instead of recording it as anAPI_KEY_AUTH_FAILEDcredential failure. - Stop throttled dashboard media downloads from retrying after the API key changes or is cleared.
- Keep the dashboard chat composer's in-flight send state per conversation, so a slow send in one chat no longer disables Send in another.
- Restore keyboard focus to the Export data, Import data or Download backup first control after a backup finishes, without scrolling the page.
- Refuse
.and..path segments, percent-encoded ones too, in raw Python and PHP SDKrequestpaths, as the JavaScript, Go and Java SDKs do. - Keep the first segment of a raw Python SDK
requestpath that starts with//, which httpx read as a host name and dropped. - Type
GroupInfo.owneras a non-null JID in the JavaScript SDK, andChatHistoryMessage.mentionedIdsandMessageContact.labelsaslist[str]in the Python SDK. - Answer
503instead of500when the Baileys connection drops under a group or channel request (a create excepted), a catalog, label, contact, profile, block, chat or call request. - Answer
404instead of500when WhatsApp refuses a Baileys group read with a 4xx code other than the ones already mapped. - Answer
503instead of500, with nothing sent and a keyed send'sIdempotency-Keyfreed, when the identity check behind a Baileys reply, forward, button click, reaction, edit, delete, star, pin or unpin is rate-limited or loses its connection; the chat writes and read receipts that run the same check answer503too. - Free a keyed Baileys sticker send's
Idempotency-Keywhen sharp cannot load, and keep that failure out of the send breaker. - Refuse with
403a Baileys edit of a message that has no text or caption, as whatsapp-web.js does, instead of answering200and rewriting the stored body. - Send a Baileys contact card with its display name.
- Clear a Baileys message and its chat preview when a contact's delete for everyone reaches history sync in a later chunk than the message.
- Stop recording a Baileys history-sync group delete, for a message the session does not hold, as a deleted message sent by the account.
- Answer
409to a Baileys pairing-code request when the session stops or reconnects while the code is being requested, instead of returning a code nothing can link or a500. - Answer
GET /api/sessions/{sessionId}/presence/{chatId}for a chat id written with@s.whatsapp.net, a:devicesuffix or in upper case, and on Baileys for a contact whose presence WhatsApp reports from its@lidonce that pairing has been reported, all of which answerednull. - Keep a whatsapp-web.js session
READYwhen a WhatsApp Web reload cuts a page call short, which marked it disconnected and forced a full reconnect; a read cut short this way answers the retryable reload409, where it answered503. - Apply whatsapp-web.js chat label adds and removes addressed by a contact's
<phone>@c.usid to its chat when WhatsApp Web keys that chat by@lid, which answered200and changed nothing. - Free the
Idempotency-Keyof a whatsapp-web.js send refused before anything was sent (an unknown chat or quoted message; a reply, location or contact card to a channel, status or broadcast list; a poll or sticker to a status or broadcast list; media to a channel; a custom link preview), which a retry answered with409outcome unknown. - Answer
503(not sent) instead of500when the chat read before a whatsapp-web.js reply or forward outruns the page's protocol timeout. - Answer
400(not sent) to a whatsapp-web.js sticker whose type is neither an image nor a video, instead of a500the send breaker counted. - Resolve a whatsapp-web.js send to
<phone>@s.whatsapp.net, an upper-case@C.USor a:deviceid like its<phone>@c.usform, so a contact WhatsApp addresses by@lidis reached instead of refused with500. - Answer
503instead of500when the whatsapp-web.js blocklist read outruns the page's protocol timeout. - Answer
403, where it answered200or500, to whatsapp-web.js participant remove, promote and demote, to the membership requests read, and to approving or rejecting every pending request, for an account that is not an admin of the group, as the routes document. - Pin the browser locale on whatsapp-web.js Chromium args stored through the plugin config API, as on the built-in defaults.
- Retry a whatsapp-web.js pairing code request that lands on a freshly reloaded QR page instead of answering
500. - Kill the Chromium a whatsapp-web.js stop or delete left launching once the init deadline force-destroys the engine, instead of leaving it running on the session's profile.
- Detect whatsapp-web.js onboarding dialogs drawn with
position: fixed, which the onboarding probes never saw. - Keep
contact.idin whatsapp-web.js contact details (WEBHOOK_CONTACT_DETAILS=true) on a WhatsApp Web build that renamed its id field. - Refuse with
400a start sent while a whatsapp-web.js reconnect waits for the same profile removal, which launched a second engine and left the reconnect's running where stop, force-kill, delete and shutdown could not reach it. - Keep a whatsapp-web.js session's push name when it becomes ready while its account info cannot be read, instead of blanking it.
- Store the forwarded message's type, text and media on the row
POST /api/sessions/{sessionId}/messages/forwardwrites, instead of a[Forwarded]placeholder that the message list, the dashboard and search kept showing; a new forward is no longer typedforwardin?type=forwardand in thebyTypestatistics. - Read unfinished bulk batches one at a time when failing them at startup, on a session takeover, delete or data import, so a restart after a crash mid-run no longer loads every batch's media payloads at once, nor a live peer's.
- Answer
400toPOST /api/sessions/{sessionId}/messages/send-templatewhen the template renders to an empty text (header, body and footer included), assend-textdoes, instead of storing and sending an empty message. - Hand back a bulk item's or product card's send-pacing admission when the engine marks its failure as raised before anything was sent, whatever the status, and stop counting any send failure marked that way toward the send breaker.
- Delete expired finished bulk batches 500 at a time under
MESSAGE_RETENTION_DAYS, so a large backlog no longer holds SQLite's single writer in one statement. - Keep a session
initializing, with the timeout aslastError, while a reconnect whose relaunch hit the engine init deadline waits for its next attempt, instead of reportingdisconnectedwith nolastError. - Keep another node's lapsed claim when
POST /api/sessions/{sessionId}/logoutor/force-killcannot read the session, so the takeover sweep can still adopt it. - Answer
503instead of500whenPOST /api/sessions/{sessionId}/startcannot claim the session because of a database error. - Accept a form-encoded
muteUntilonPOST /api/sessions/{sessionId}/chats/mute; clearing a mute still needs a JSONnull. - Refuse
POST /api/infra/restartwith409(RESTART_DATABASE_NOT_STARTED) when the built-in PostgreSQL it was asked to start does not start, instead of restarting into a boot loop; nothing is stopped, a configuration saved since the server started is put back when it can be written, and the refusal is recorded in the audit log. - Answer
409(RESTART_ALREADY_RUNNING) to a restart requested while another is running or once the server is restarting, where two could race for the same containers and roll a saved configuration back under the restart that won. - Refuse a
POST /api/infra/import-dataarchive whose sessionconfig, webhookheaders, plugin instanceconfig, conversation mappingmetadataor message batch JSON does not parse, which restored rows that failed every later read,GET /api/sessionsincluded. - Enforce a plugin's session activation when its manifest declares
sessionScopedas0or"", which the API already showed as session-scoped, so a plugin limited to some sessions, as an integration instance provisioned for one session is, no longer runs for the others. - Keep the Plugins page working when an installed manifest declares its description, author, provides tags or localized text as something other than text; those values are dropped.
- Keep a long plugin
ctx.storagekey writable after many writes, instead of failing withENAMETOOLONGonce the gateway has written often enough. - Report a sandboxed plugin healthy on
GET /api/plugins/{id}/healthonly when its health check returnshealthy: true. - Take a sandboxed plugin's search-provider declaration once per worker, so a repeated one cannot retake the active provider.
- Keep a later webhook failure's event data on the delivery's earlier terminal failure row while payload retention is on, so the event can still be redriven.
- Keep an S3 media download open for a slow client when the store took more than 3 seconds to send its headers; such downloads were cut after about 30 seconds instead of the 10 minutes a stalled reader is allowed.
- Rank and highlight
match=containshits on the first 4,096 UTF-16 units of each message, so a search over long received messages no longer blocks every session for seconds; a hit whose terms appear only past that point scores 0 and gets a snippet without<mark>. - Count API requests answered before routing (the shutdown
503, the in-flight body budget's503/413/415, an encoded-NUL400, malformed or too deeply nested bodies) inhttp_requests_totalandhttp_request_duration_secondsunder the(unmatched)route, together with CORS preflights. - Log a failing Redis check of the rate limiter once per outage, and once more when Redis answers again, instead of three warnings for every request while it lasts.
- Stop warning at every boot that
WEBHOOK_SHUTDOWN_DRAIN_MSis shorter thanWEBHOOK_TIMEOUTwhen both are at their defaults; a changed value that leaves them crossed still warns. - Return at most
limithits from a plugin search provider that answers with more. - Count the files of an S3 store for
GET /api/infra/storage/files/countwithout holding every bucket key in memory. - Mark the
idsquery ofGET /api/sessions/{sessionId}/contacts/profile-picturesoptional in the OpenAPI contract; the route already answers{ "pictures": {} }without it. - Put the text of a dashboard chat message the gateway refuses back in that chat's message field.
- Hold a dashboard chat message past 4096 characters, or a caption past 1024, and say so under the field.
- Close the dashboard status form when its session is deleted and the next one opens, which posted the status through the other account.
- Stop the dashboard asking a newly selected session about the previous session's open chat, open channel and chat list.
- Keep the dashboard status viewer where its reader scrolled when a message for another chat arrives or the search changes.
- Show a message sent from the dashboard at the gateway's time when its live echo arrives before the send's answer.
- Share one dashboard session list read among the status pushes of a moment, so a burst of reconnecting sessions no longer trips the route's rate limit on the Sessions page, and retry a refused read after the wait its
Retry-Afternames. - Open no QR dialog after starting a stopped dashboard session that is still linked.
- Give the dashboard's API key Revoke action its own word in Arabic, Hebrew and Telugu, where it read the same as Cancel.
- Disable the dashboard's Restart Now while a backup export or import is running.
- Drop the Error option from the dashboard Logs severity filter, since the audit log records failures as warnings.
- Send a Message Tester recipient written as a chat id, such as a lid, as written instead of reading its digits as a phone number.
- Drop a leading
00exit code from Message Tester and bulk recipient numbers, as the Number Checker does. - Hold the Message Tester's Send until the recipient or forward target holds a digit or a chat id, and stop requiring the phone field for a forward from a named chat.
- Check template name, body, header and footer lengths in the dashboard and name the field, instead of a bare
Bad Request. - Check a webhook URL's scheme and length in the dashboard and say what is wrong, including a stored URL saved before the scheme was required.
- Report a failed sessions read on the Number Checker instead of claiming no session is connected, and show the gateway's reason when the webhook list is refused for a key whose role allows webhooks.
- Preview a template placeholder named like
constructorortoStringas written, as a send leaves it. - Keep the dialog showing a new API key open until its Close button is pressed, so Escape or a stray click cannot lose the key.
- Leave a
QUEUE_ENABLEDpinned by the environment out of a dashboard Infrastructure save, which wrote the pin into the saved config and could drop a stored bundled Redis. - Keep the plugin instance create and regenerate dialogs open until the one-time secret arrives.
- Refuse a dashboard sign-in on a
200answer that does not say the key is valid, such as a misrouted proxy page. - Refresh the dashboard overview's sessions and session statistics every 30 seconds while it stays open and they can be read.
- Keep keyboard focus out of the page behind the dashboard's open phone drawer, and return it to the language button when the language menu closes from inside it.
- Go SDK: retry a POST answered
503underWithRetryonly when it carries anIdempotency-Keyor the503carriesRetry-After, since a Baileys send or status post that WhatsApp timed out may already have been delivered; an unkeyed POST now gets its first503back. - Java SDK: refuse a
SendLocationRequestbuilt without a latitude or longitude, which sent a pin at 0,0;build()now throws. - Java and Go SDKs: stop sending
sessionIdon the cross-session webhook list, which ignores it. - PHP SDK: send the
groups->createparticipant list and thesendBulkmessages list as JSON arrays when their keys have gaps, which the gateway refused with400. - JavaScript SDK: encode the route segment of
OpenWAClient.sendMedia, and reject an id holding a lone surrogate instead of throwing synchronously. - SDKs: refuse an id with a
.or..part between slashes, which a reverse proxy that decodes%2Fsent to another route. - Say, when
restore.shrefuses apsqltoo old for the dump's\restrict, that a load into the built-inopenwa-postgrescontainer runs that container'spsql, and that running the restore in the image gets past the check. - Warn in the Helm chart's install notes that an API key revoked or narrowed on one replica stays valid on the others.
- Document in the Helm chart's
values.yamlthatserviceMonitor.bearerTokenSecret.keymust beMETRICS_TOKENwhen it names the chart's own Secret orexistingSecret. - Apply the whatsapp-web.js message-id backport through
git applyon a source install whosepatchis BusyBox's applet, which refused its options and failednpm install. - Say to reinstall
@whiskeysockets/baileys, instead of to re-evaluate upstream, when an interrupted install left the Baileys pairing backport half applied.
Documentation
- The API reference says how the socket
dataof an event differs from its webhook payload, includingqrCodeonsession.qr, and uses session ids rather than names in its examples. - The API reference says the LID lookup needs an OPERATOR key and lists
quotedMessageIdandpttin the shared media table. - The migration guide lists the 0.27.0
DATABASE_SYNCHRONIZEboot refusal and therestore.shand scoped-backup client floors as upgrade hazards. - The SDK design doc names the Baileys
409of a logout with no linked device. - The security design states the
chatIdformat check and lists thephone_second_lid_reportedaudit row. .env.exampleand the plugin search guide say a search plugin is chosen by enabling it, sinceSEARCH_PROVIDERtakes no plugin id.- The troubleshooting FAQ lists the
501,502and504answers and the common causes of a503. - The phone-number pairing guide gives the Baileys pairing code window.
- The API reference and the global search guide say that the built-in
match=wordscoreis lower for a better hit on SQLite (FTS5 bm25) and higher on PostgreSQL (ts_rank), and that on PostgreSQL the early stop ofmatch=containsat its 1,000 newest matches needs version 13. - The SDK READMEs say a client timeout does not stop the gateway, what the base error class does not cover, and that webhook receivers should dedupe on
idempotencyKey.
Security
- Make the preview of a Baileys video send or video status through the gateway's bounded ffmpeg run, instead of letting Baileys run ffmpeg on the caller's bytes with no protocol or format whitelist, deadline or limit, which let a crafted video make ffmpeg connect to an address of the caller's choosing outside the SSRF guard; the video goes out without a preview when ffmpeg is missing or takes over 10 seconds.
- Deliver an ingress request that carries its content in the query string of an empty body with
verified: falseonhmac-sha256andstandard-webhooksroutes, including a delivery recorded as verified by an earlier release that is retried or redriven, since no signature covers the query and one captured signature on an empty body vouched for any query. - Answer
400to asend-bulkentry that is itself an array, which the chat fence and the 100-entry cap did not see. - Stop printing the first characters of an
API_MASTER_KEYin the startup banner on every boot after the first.
AI summary Enhanced dashboard with session switcher, contact info, and improved chat navigation
Added
- Add a session switcher to the dashboard Chats page that lists every session with its state, picture, push name and number, and lets only a ready one be selected. Thanks @rjsebening.
- Add a contact info panel to the dashboard chat room with the contact's picture, name, number and copyable chat id. Thanks @rjsebening.
- Add Today, Yesterday and date separators to the dashboard chat thread. Thanks @rjsebening.
- Add
match=containstoGET /api/search, which needsSEARCH_CONTAINS_ENABLED=true: case- and accent-insensitive substring search on a trigram index (FTS5 on SQLite,pg_trgmandunaccenton PostgreSQL) that ranks the 1,000 most recently stored matches, sototalis at most 1,000 in this mode;match=wordstays the default and the SDKs acceptmatch(#1899). Thanks @luisffm. - Add the
MessageSearchMCP tool, which runs the global message search for agents, withmatch=containsby default only whenSEARCH_CONTAINS_ENABLED=true(#1899). Thanks @luisffm. - Add
PUT /api/sessions/{sessionId}/groups/{groupId}/member-labelto set this account's member label in a group on Baileys; whatsapp-web.js answers501, andsetMemberLabelin all five SDKs (#1918). Thanks @xwork1 for the report. - Add
thumbnailUrlandthumbnailBase64tocustomLinkPreviewon Baileys for an image that renders the large preview card, at most 5 MiB, also in the typed SDKs (#1917). Thanks @lrissatto. - Add a warning log and a
phone_second_lid_reportedaudit row, filed under the reporting session, when a session reports a privacy id the gateway did not hold, or held only outside its mapping cache, for a phone number the lid table already maps to another reported id. - Add a hint to the dashboard API Keys form that an
@lidchat entry also admits the phone number mapped to it.
Changed
- Redesign the dashboard Chats page in a WhatsApp Web style, full height without the page header, with its own light and dark palette, a patterned wallpaper behind the thread, coloured avatars, tailed bubbles and a single-pill composer; every existing chat feature stays (#1887). Thanks @rjsebening.
- Show the dashboard Chats page's message search behind a toggle in the chat list header, still hidden for read-only keys. Thanks @rjsebening.
- Show the raw chat id of a dashboard chat in its contact info panel instead of the room header. Thanks @rjsebening.
- Show a dashboard chat message's time and delivery ticks inside its last line of text, with the delivery status still named for screen readers. Thanks @rjsebening.
- Show dashboard chat list times as the clock today, Yesterday, the weekday within the last week and a short date before that. Thanks @rjsebening.
- Move the dashboard sidebar's collapse button from the sidebar edge into its header, beside the logo or under it when collapsed, with a panel icon mirrored for right-to-left languages. Thanks @rjsebening.
- Offer Clear chat and Delete chat in the dashboard on Baileys sessions too, now that the phone applies both (#1891).
- Show each audit row's message under its action on the dashboard Logs page.
Fixed
- List a whatsapp-web.js group from the metadata the page already holds when WhatsApp Web fails one of its own invariants while refreshing it, so one such group no longer turns
GET /api/sessions/{sessionId}/groupsand/chatsinto a permanent 500 (#1950). Thanks @Bhavikg27. - Index a Baileys clear, delete, archive or unread by the same chat jid as its message key, so the phone applies it (#1891). Thanks @rjsebening.
- Key Baileys chat writes and read receipts to the gateway's newest stored message when the session holds none in memory (#1891). Thanks @rjsebening.
- Send a Baileys archive or mark unread without a range for a chat the session knows but holds no message for, where it answered
success: false(#1891). Thanks @rjsebening. - Group dashboard phone numbers in threes and fours, so
+49 157 333 4 4455now reads+49 157 3334 4455; 10-digit numbers keep their shape (#1940). - Make the deleted-message and omitted-media labels in outgoing dashboard chat bubbles readable in dark mode.
- Match the dashboard New chat search against contact numbers only when the query reads as a phone number, so a name with a digit no longer lists every contact whose number holds that digit.
- Read the dashboard Chats page's session list again when the page is shown, so a session deleted elsewhere no longer stays open.
- Draw group sender names in dashboard chat threads in colours that clear 4.5:1 on the incoming bubble in light and dark themes.
- Draw links inside a quoted dashboard chat message in the chat link colours, which clear 4.5:1 on the quote in light and dark themes.
- Draw the selection check in the dashboard New group list dark on its green fill, where white measured under 3:1.
- Name the buttons that remove a staged file and close a reply above the dashboard chat composer for screen readers.
- Announce the unread badges on dashboard chat list rows to screen readers, including the dot of a chat marked as unread.
- Mark dashboard chat messages as tappable on touch screens, so iOS reveals their reply, react and delete actions on a tap as hover does with a mouse.
- Fit the dashboard chat room's menu to the room's height, scrolling its entries, so a short window no longer cuts off the last ones.
- Keep a member's name and number at the start edge of the dashboard group dialog in right-to-left languages, where a Latin name and every number sat at the left.
- Name an unnamed dashboard chat by its formatted number on its list row, in its menu, dialogs and toasts and on the reply banner, instead of the bare digits of its id.
- Close the connection of a refused
/eventshandshake, or of a subscribe refused because its key is no longer valid, which stayed open with no namespace. - Name the refused API key in the audit row of a WebSocket refusal, and answer a key store that cannot be read with
INTERNAL_ERRORinstead of a refused key. - Show the caption of a Baileys photo, video or document, the text of a disappearing or view-once message, and the button label of a native-flow reply, in the chat list preview instead of a blank line, and the native-flow label and envelope text in
quotedMessage.bodyof a message quoting it. - Keep a Baileys chat list preview from taking an edit or delete sent by someone other than the message's author; in a group a delete from any member still counts, as an admin may delete.
- Report
message.ackonly for messages the account sent, so reading a received message on the phone no longer marks it read (both engines). - Answer
409"nothing to unlink" for a logout of a Baileys session with no linked device, instead of a502that asked to retry. - Show a QR on the next start of a Baileys session whose pairing code was never entered.
- End the wait for a Baileys pairing code nobody enters after 5 minutes and show a new QR.
- Bound the Baileys group invite-code read and revoke at 30 s like the other group calls.
- Answer
503(not sent) for a Baileys send or status post cut off by a closed connection, instead of an opaque500, handing back its pacing admission and a keyed send'sIdempotency-Key. - Free a keyed send's
Idempotency-Keywhen it was refused before anything was sent: its media could not be fetched, its session was not ready or its WhatsApp Web page was reloading, or, on Baileys, its sticker or preview image could not be read, its recipient is not registered, its quoted or forwarded message is not stored or is stored under another chat, or its connection was replaced or stopped before the write, so the retry is sent instead of answering409 IDEMPOTENCY_OUTCOME_UNKNOWN. - List a Baileys chat again, with its unread count, when a message arrives in the same second as its deletion.
- Keep a Baileys receipt from one chat off another chat's message with the same id.
- Answer the engine error instead of
400"not on WhatsApp" for a whatsapp-web.js send whose recipient lookup did not answer, without counting it toward the send breaker. - Recycle a whatsapp-web.js session whose page reloaded without re-injecting its helpers once it has gone 3 minutes that way, without recycling a slow reload that did re-inject.
- Skip the whatsapp-web.js message-id backport of a
--best-effortinstall on a read-only tree it never wrote to, instead of failing it. - Keep a session start or reconnect that lost its claim to another node from marking that node's session disconnected.
- Link the number that scans the reconnect QR after WhatsApp unlinks a session, also when a reconnect was already pending, instead of logging it out and failing the session.
- Say a session with reconnect disabled was marked failed when it drops.
- Return
reconnectBaseDelayas an integer from session config, so the Go and Java SDKs decode a value stored with a fraction before validation. - Run the graceful drain on one Ctrl+C or stop signal under npm or the Nest CLI, which delivered it twice and forced exit 130; a repeat 1 s or more later still forces the exit.
- Write the env loader's boot lines at the configured
LOG_LEVELand format, after.envis read. - Name an unknown
LOG_FORMATat boot, with the format used instead. - Log a failed chmod of the generated env or bootstrap key file through the structured logger, at the configured
LOG_LEVELand after the env loader's first-run line, instead of a raw console line. - Boot through PgBouncer in session mode: the PostgreSQL statement timeout and a custom schema's search path are set after connect, as the time zone already was, instead of in the startup packet.
- Back up only the configured non-public
POSTGRES_SCHEMAwith its search extensions, and pgcrypto when it lives in that schema, so a database shared with other applications no longer fails the backup or comes back with their schemas on restore. - Stream chat and status media downloads from the store instead of reading the whole file into memory.
- Drop the
archivedmarker of media that retention deletes underMESSAGE_INLINE_MEDIA=archive. - Stop holding every S3 key in memory during the chat-media orphan sweep.
- Remove conversion temp directories a killed process left behind, at start.
- Emit
message:persistedagain when an edit changes a stored message's text, so plugin search indexes see the edit. - Store the account JID as
fromof a message sent through the API, as on phone-sent ones;fromfilters also match rows stored with the bare number. - Stop listing a delivery failure of a deleted webhook as
replayable. - Hand a plugin config saved while the plugin was starting to the running plugin.
- Refuse a plugin config, activation, enable or disable change the plugin registry cannot store, instead of reporting it applied and losing it at the next restart.
- Empty a plugin's registry entry before its uninstall, so an entry the registry could not drop no longer hands its config, secrets and enable decision to a reinstall of the id after a restart.
- Refuse a plugin config, per-session config or activation change with
409while an uninstall of that plugin is unloading it. - Publish the
limitandoffsetquery parameters of the list routes as integers inopenapi.json. - Declare the
503ofDELETE /api/sessions/{sessionId}in the OpenAPI document. - Say in the API reference, the OpenAPI schema and the JavaScript SDK that a contact's or group participant's
numberfor a<lid>@lidid can hold the lid's digits or an empty string rather than a phone number. - Java SDK: attach the Gson failure as the cause of the
OpenWAErrorfor a 2xx body it cannot read, now wordedUnexpected response body for <method> <path>instead ofNon-JSON response. - Keep nested dependency and build trees and a legacy
uploads/directory out of the Docker build context. - Keep a Baileys chat deleted on the phone out of the chat list when a mute or pin sent through the API echoes back, until a new message re-creates it, and apply a disappearing-timer change made while it is deleted (#1949).
- Keep a Baileys chat's disappearing timer from being set back by a history record or message older than the change, and keep two chats of a recycled number from reading or overwriting each other's timer.
- Accept
PUT /api/sessions/{sessionId}/presenceon a newly linked Baileys session once its push name has synced, where it answered409until a restart. - Store a newly linked Baileys account's push name on its session once WhatsApp syncs it, instead of leaving it empty until the next reconnect.
- End a Baileys media upload through a session proxy that stops answering, where a media send, status post or preview image waited for good.
- Answer
409(reloading) instead of500for whatsapp-web.js operations on a reloaded page the liveness probe found without its helpers, without counting them toward the send breaker. - Refuse a whatsapp-web.js mark read or unread, clear or delete chat, block or unblock, or channel mute with
409when the session stops during its lookup, instead of sending it. - Keep an engine init timeout from marking a session disconnected on a row another node took over meanwhile.
- Mark a session disconnected when its start or takeover adoption fails before an engine exists, instead of leaving the status a vanished node wrote.
- Audit a WhatsApp unlink, send
session.disconnectedfor it and clear the session's phone binding also when its session row cannot be read while a reconnect is armed or running or a read retry is pending. - Reconnect a session whose new engine drops while a retry of its replaced engine's failed session read is pending, instead of leaving it disconnected with no reconnect armed.
- Refuse a status or chat media download on S3 storage with
503andRetry-After: 1at once when 50 are already open; the dashboard retries it for archived chat media, status media and the download button of an omitted attachment. - Cut an S3 media download, file read or export entry whose store sends nothing for 30 s or whose reader takes nothing for 10 minutes, and an S3 listing page after 30 s, so a stalled store or a client that stopped reading no longer holds its download for good or stops the orphan sweeps until a restart.
- Report a bulk voice note as type
voiceto themessage:sendingandmessage:failedplugin hooks, as its stored row and a single voice send are. - Refuse a group id with more than one
@on the group picture and member-label routes with400. - Dispatch every ingress delivery carried only in its query string (a GET callback, a bodiless POST) without a dedup header, where all but the first were acknowledged and dropped.
- Keep a built-in engine's
.envsettings in effect when the masked configGET /api/plugins/{id}returns is sent back toPUT /api/plugins/{id}/config. - Let
nullfor a built-in engine key inPUT /api/plugins/{id}/configremove the stored override, so the key takes its.envvalue again, where the null was stored and hid.envon every boot. - List plugins when a plugin manifest declares a
configSchemaproperty asnullor another non-object value, whereGET /api/pluginsanswered500for every plugin. - Stop writing a lost-binding warning to the audit log for each instance of a global ingress plugin at every boot and on every create, change or delete of one.
- Report a plugin package that fails boot validation as invalid, not as missing code with advice to reinstall it.
- Refuse to boot with a
DATABASE_SYNCHRONIZEother thantrueorfalse, which read asfalse. - Stop
restore.shbefore it writes anything when thepsqlonPATHcannot load the archive's PostgreSQL dump, and name the psql versions the load needs. - Stop a PostgreSQL 12 migration that needs
pgcrypto, when it lives in a schema off the connection'ssearch_path, with a message that names the schema and theALTER EXTENSIONthat moves it, instead offunction gen_random_uuid() does not exist. - PHP SDK: send the participant list of the group participant and membership-request methods as a JSON array when its keys have gaps (
array_unique,array_filter), which the gateway refused with400. - PHP SDK: raise a
TransferExceptionfor a response body cut before itsContent-Lengthon Guzzle 7's stream handler, which returned a cut media download as the whole file. - Open the listed privacy-id chat when a saved contact is picked in the dashboard New chat panel, instead of an empty chat beside it.
- Keep a dashboard draft with the chat it was typed in, so it no longer follows into another chat or session and gets sent there.
- Open a dashboard search hit stored under another spelling of its chat id, at the message, and say when its chat could not be found in the list.
- Open an inline image or sticker in the dashboard media viewer, also from the keyboard.
- Redraw only the dashboard chat rows that change, so typing stays fast on accounts with many chats.
- Refuse a phone number longer than 15 digits in the dashboard Number Checker, bulk recipients, webhook filters, Message Tester and group member field, such as two numbers typed on one line, which was looked up or sent as one number.
- Fetch no dashboard preview for archived media that retention already deleted.
- Name the dashboard's icon-only copy and chip remove buttons, expose webhook and filter tag states and plugin dialog tabs to screen readers, and keep webhook filter suggestions usable from the keyboard.
- Show refused webhook test statuses and API key role names in the dashboard language.
- Translate the API key role names and the S3 access and secret key labels of the Hebrew dashboard, the viewer role and S3 key labels of the Indonesian one and the S3 key labels of the Italian one, which showed in English.
- List and preview legacy single-brace placeholders on the dashboard Templates page, as the gateway still fills them.
- Keep dashboard message search results open when focus returns within a moment.
- Show the gateway's reason when a dashboard unlink of a Baileys session with no linked device answers
409. - Show a warning, until it is closed, on the dashboard Plugins page when an uninstall could not drop the plugin's registry entry.
- Clear a dashboard pairing code once Baileys ends its unused five-minute wait and shows a new QR.
- Retry a dashboard live-feed subscribe the gateway could not check or rate-limited, read again what it missed once it joins, and show the connection banner when it keeps failing.
- Keep the dashboard media viewer on the image it opened when another image leaves the thread or a send it shows is confirmed, and closed once its own image is deleted.
- Keep the dashboard message field focused through a send made with Enter or a focused Send button, so the next message can be typed at once.
- Keep a dashboard dialog and its form open when Escape cancels the text an input method is composing.
- Keep the dashboard from acting on the Enter that commits an input method composition in the New Session name, pairing phone, Number Checker, New chat search and webhook contact fields.
- Let the keyboard reach the dashboard's plugin .zip chooser and the Import data backup chooser, which Tab skipped.
- Name the dashboard plugin update chip by the version it shows, so voice control and screen readers get it too.
- Address the reader as du in ten more German dashboard strings.
- Name the dashboard sidebar theme and language buttons by the text they show and then their action, the Logs and Sessions filters by what they filter as well as the value shown, and the status composer's Text and Image toggle by its pressed state.
- Say why a dashboard webhook filter number longer than 15 digits is not added.
- Close the dashboard webhook filter popover on Escape, and keep it open while the pointer moves onto it.
Dependencies
- Update Chrome for Testing in the amd64 image from 156.0.8078.47 to 156.0.8078.80; the arm64 image keeps Debian's chromium package.
Upgrade notes (behavior changes)
- A Baileys logout of a session with no linked device answers
409instead of502. - A Baileys send or status post cut off by a closed connection answers
503where it answered500; a keyed send frees itsIdempotency-Key, so a retry with the same key is accepted and sent, where the key stayed held. - A keyed send refused before anything was sent frees its
Idempotency-Key: its media could not be fetched, its session was not ready (409, both engines) or its WhatsApp Web page was reloading, or, on Baileys, its sticker or preview image could not be read, its recipient is not registered, its quoted or forwarded message is not stored or is stored under another chat, or its connection was replaced or stopped before the write; a retry with the same key is sent where it answered409 IDEMPOTENCY_OUTCOME_UNKNOWN. - A whatsapp-web.js send whose recipient lookup does not answer answers
500(ENGINE_PAGE_ERROR), or409when a page reload cut the lookup short, instead of400. - A plugin change the plugin registry cannot store answers
success: false(config, per-session config, enable, disable) or500(PUT /plugins/{id}/sessions, and an uninstall, which then leaves the plugin running) where it answered success. - The
/eventsgateway answersINTERNAL_ERRORwhen it cannot read the key store, where it answeredUNAUTHORIZEDand audited a failed key; a subscribe answered so joins nothing and keeps the socket, so send it again, and a handshake still disconnects. - A backup of a non-public
POSTGRES_SCHEMAholds only that schema and needs pg_dump 14 or newer; restore it with the loadrestore.shprints. Archives made earlier restore as before. - A message sent through the API stores
fromas<phone>@c.usinstead of the bare number; rows stored earlier keep their value andfromfilters match both. - Dashboard number fields refuse an entry of more than 15 digits, which they looked up or sent as one number; the bulk recipients list leaves such a line out.
- On Baileys,
GET /api/sessions/{sessionId}/qranswers400from 60 s after a pairing-code request until the new QR, where it served the QR from before the request, which could no longer link. message.ackwebhooks and socket events, and the pluginmessage:ackhook, no longer fire for a received message, and reading one on the phone no longer moves its stored status toread.- An uninstall that fails part-way (
400) leaves the plugin installed but disabled, with its config, session activation and enable decision cleared, where it kept them; it is audited asplugin_uninstalledwithpartial: true. message:persistedfires again, with the sameid, when an edit changes a stored message's text; upsert byid.- A second stop signal within 1 s of the first is ignored as the same stop; send it 1 s or more later to force exit 130.
- Chat and status media downloads are streamed:
Content-Lengthis sent only when the store reports a size, and a store failure after the first byte aborts the connection instead of answering500. - A Baileys chat deleted on the phone or through the API stays out of
GET /chatsuntil a new message re-creates it, also one re-created during the reconnect that synced the deletion;chat_statesgains adeletedAtcolumn. - Rolling back to 0.26.0 with the database kept lists every Baileys chat deleted since the upgrade again; with the app stopped, run
npm run migration:revert:prodonce in the new image before the swap, or restore the pre-upgrade backup. restore.shexits1before it writes anything when the archive's PostgreSQL dump opens with\restrictand thepsqlonPATHis older than 13.22, 14.19, 15.14, 16.10 or 17.6 (or any 12), which cannot load it.DATABASE_SYNCHRONIZE=True,TRUE,1oryesnow refuses to boot, where it read asfalse; settrueorfalse.- On S3 storage, a status or chat media download answers
503withRetry-After: 1while 50 others are still being read, where 0.26.0, which read each file whole before sending it, queued it; a download whose store sends nothing for 30 s, or whose client takes nothing for 10 minutes, is cut. - On Baileys, a send addressed only to a phone number the gateway maps to more than one lid carries no disappearing timer, where it carried the timer of one of those chats.
- On the built-in engines (
whatsapp-web.js,baileys),nullfor a top-level key inPUT /api/plugins/{id}/configremoves the stored key, so it takes its.envvalue again, where the null was stored over.env; a running session keeps its launch options until it restarts. A registry that froze the engine settings by sending back the masked config is repaired by sending those keys asnull. - whatsapp-web.js operations on a reloaded page the probe found without its helpers, and chat, contact and channel writes whose session stops during their lookup, answer
409where they answered500,503or succeeded. - A whatsapp-web.js re-inject that fails after a page reload is logged as a
page_reinject_failedwarning naming the session and no longer counts inopenwa_unhandled_rejections_total. - An ingress delivery carried only in its query string with no dedup header gets a new delivery id, so one its provider retries across the upgrade is dispatched once more.
- The
message:sendingandmessage:failedplugin hooks report a bulk voice note asvoice, where they saidaudio.
Security
- Pin the bundled Compose
docker-socket-proxyimage by digest as well as tag.
@ Every self-hosted release, weekly
One Monday email with the week's stable releases across the directory.
FAQ
Can I use a WhatsApp Business account?
Yes, both personal and WhatsApp Business app accounts work; Meta's official WhatsApp Business API is a different product that OpenWA does not use.
How many sessions can I run on one instance?
It depends on RAM and engine: roughly 3-5 whatsapp-web.js sessions on 2 GB, 8-10 on 4 GB and 15-20 on 8 GB, with baileys fitting many more.
Is OpenWA affiliated with Meta or WhatsApp?
No, it is an independent community-driven open-source project with no authorization or endorsement from Meta or WhatsApp.
Does using OpenWA risk account bans?
Any unofficial automation carries some risk; OpenWA mitigates it with simulated typing, randomized delivery intervals, per-session proxies and rate limiting.
Can I change the database or storage backend?
Yes, database (SQLite/PostgreSQL), media storage (Local/S3/MinIO) and cache (Memory/Redis) are swapped purely through configuration.
Which WhatsApp engines does OpenWA support?
whatsapp-web.js (headless Puppeteer browser) is the default, and ENGINE_TYPE switches to the browser-free baileys engine.
Can I self-host OpenWA?
Yes, it is built for self-hosting with a single Docker command; the API and dashboard are bundled together on port 2785.
Is OpenWA really free?
Yes — the whole project is MIT-licensed with no paid tier, no feature locks and no licensing fees for personal or commercial use.
More in API Management
OtariA self-hosted, open-source LLM gateway that unifies 40+ model providers behind one OpenAI-compatible endpoint, with virtual keys, budget controls, and usage analytics.
PipelexBuild AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
pRESTOpen-source, self-hosted backend that turns a PostgreSQL or MySQL database into instant REST CRUD endpoints, custom SQL routes, JWT auth and a read-only MCP API.
skrunSkrun is a self-hosted agent runtime turning Agent Skills into POST /run APIs. Supports multiple LLMs, MCP, SSE, webhooks, dashboard. MIT, Node.js, SQLite/Postgres
StrapiSelf-hosted, open-source headless CMS built with JavaScript/TypeScript that generates REST and GraphQL APIs from content models, with a customizable admin panel.
supabaseSelf-hosted open-source Postgres platform with database, auth, realtime, storage, edge functions, and vector embeddings as a Firebase alternative.
TykSelf-hosted open-source API and AI gateway proxying REST, GraphQL, gRPC, TCP and MCP traffic with auth, quotas, plugins and analytics.
unkeySource-available developer platform for modern APIs: issue and verify API keys, rate limit at a global gateway, deploy apps, and watch usage from one control plane.
wundergraphOpen-source, self-hosted lifecycle manager for federated GraphQL APIs: schema registry, breaking-change checks, router, usage analytics and tracing.
aci-devACI.dev is an open-source tool-calling platform you self-host as a backend and dev portal, wiring 600+ SaaS integrations into AI agents via function calls or unified MCP.
agnoAgno is an open-source framework for building and running self-hosted AI agent platforms with REST API, MCP server, and web UI. Supports Docker and Kubernetes.
aigne-hubAIGNE Hub is a self-hosted AI gateway for 10+ LLM providers with API key management, usage tracking, and credit billing. Built as a Blocklet.

0 comments