Evolution API 2026: Open-Source WhatsApp API, Setup, Limits

What Evolution API is in 2026: an open-source WhatsApp REST API on Baileys or Meta's Cloud API. Setup, endpoints, webhooks, license terms and what breaks.

Published 9 min read
Evolution API 2026: Open-Source WhatsApp API, Setup, Limits

Evolution API is an open-source REST API for WhatsApp that you host yourself. It is a TypeScript server, maintained by the Evolution Foundation, that connects a WhatsApp number in one of two ways: as a linked device through the Baileys library, the way WhatsApp Web does, or through Meta's official WhatsApp Cloud API. Your code then creates an instance per number, sends messages with HTTP calls and receives events by webhook. The software is free under Apache 2.0 with two extra conditions, and it is one of the most starred self-hosted WhatsApp servers, with 10,183 GitHub stars on 24 November 2026.

This guide covers what it does, how to install it, the calls that matter, the license, and what breaks in production, from the project's repository and documentation as read on 24 November 2026.

What is Evolution API?

It is a server that sits between your product and WhatsApp and exposes one REST API for both. The repository's own facts, read on GitHub:

Evolution API
Repositoryevolution-foundation/evolution-api, created in June 2023
StackNode.js 20+, TypeScript, Express, Prisma
NeedsPostgreSQL or MySQL, Redis recommended for caching
Stars and forks10,183 stars, 7,467 forks
Latest stable release2.3.8, 23 November 2026
Open issues and pull requests275
LicenseApache 2.0 with two additional conditions

The project started as a WhatsApp controller based on CodeChat, which itself implemented Baileys, and its README still credits both. It has since grown integrations around the messaging core: Typebot, Chatwoot, Dify, Flowise, OpenAI and n8n for bots and agents, RabbitMQ, Kafka, Amazon SQS, NATS, Pusher and WebSocket for events, and S3 or MinIO for media. The documentation is written in Portuguese first, with English pages under /en.

How does Evolution API connect to WhatsApp?

Each instance picks one integration, and the two main ones are very different products behind the same endpoints:

IntegrationHow it connectsCost of a messageRules that apply
WHATSAPP-BAILEYSA linked device on an existing number, scanned with a QR code or a pairing codeNothingWhatsApp's terms for regular accounts; not a Meta product
WHATSAPP-BUSINESSMeta's official Cloud API, with a verified business, an app and a phone number IDMeta's per-message feesTemplates, categories and Meta's policies

The README is plain about the first one: it "relies on the web version of WhatsApp and may have limitations compared to official APIs." The second needs everything Meta requires, a verified Business Manager, an app on Meta for Developers and a registered number, and then bills per message at Meta's rates, which our WhatsApp Business API pricing guide lists by country. A third integration value, EVOLUTION, is a generic channel that takes messages in through webhooks.

How do you install Evolution API?

With Docker, or from source. The prerequisites are Node.js 20 or later, PostgreSQL or MySQL, and Redis for caching. The shortest path is the published image:

Run Evolution API with Docker (project README)
docker pull evoapicloud/evolution-api:latest
docker run -p 8080:8080 --env-file .env evoapicloud/evolution-api:latest

The .env file carries the database connection, Redis and AUTHENTICATION_API_KEY, the global key every request sends in an apikey header. Each instance also gets its own token. The documentation covers Nginx with SSL, Easypanel and a few one-click installers, because the server has to be reachable by WhatsApp's webhooks when you use the Cloud API, and by your own product either way.

How do you send a WhatsApp message with Evolution API?

Three calls: create an instance, link the number, send. These follow the project's API reference and the validation schema in its source code:

Create an instance, link a number and send a text (Evolution API 2.3.8)
# 1. Create an instance on the linked-device integration
curl -X POST http://localhost:8080/instance/create \
  -H "apikey: $AUTHENTICATION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"instanceName": "sales-ana", "integration": "WHATSAPP-BAILEYS", "qrcode": true}'

# 2. Get the QR code (a base64 image) and scan it from WhatsApp on the phone
curl http://localhost:8080/instance/connect/sales-ana \
  -H "apikey: $AUTHENTICATION_API_KEY"

# 3. Send a text to a number in international format
curl -X POST http://localhost:8080/message/sendText/sales-ana \
  -H "apikey: $AUTHENTICATION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number": "5511999999999", "text": "Hi Ana, following up on our call."}'

One trap is worth knowing before you copy an example. The published reference describes the text inside a textMessage object, the shape of version 1, while the validation schema in the repository requires number and text at the top level, with optional delay, quoted, linkPreview and mentioned. Check the request against the version you run. Other endpoints follow the same pattern: media, audio, location, contact cards, reactions, polls, lists and buttons, and template messages on the Cloud API integration.

How do webhooks work in Evolution API?

You register a URL per instance with POST /webhook/instance, or one global URL in the .env file, and choose the events. The ones most integrations need:

EventWhen it fires
QRCODE_UPDATEDA new QR code is ready to scan, sent as base64
CONNECTION_UPDATEThe connection to WhatsApp changed state
MESSAGES_UPSERTA message was received
MESSAGES_UPDATEA message changed, for example its delivery status
SEND_MESSAGEA message was sent
CONTACTS_UPSERT / CHATS_UPSERTContacts or chats were loaded or changed
GROUP_PARTICIPANTS_UPDATESomeone was added, removed, promoted or demoted in a group

With webhook_by_events turned on, each event goes to its own path, such as /messages-upsert. The same events can go to RabbitMQ, Amazon SQS, Kafka, NATS, Pusher or a WebSocket instead of HTTP, which suits fleets of numbers, since a queue absorbs a burst that a slow webhook endpoint would lose.

Evolution API or Evolution Go?

The foundation maintains two engines. Evolution API is the Node.js server described here, built on Baileys. Evolution Go, created in March 2026, is a separate server written in Go on the whatsmeow library, presented as the high-performance option, with 1,008 stars and its own Docker image. Its README lists REST endpoints with Swagger, webhooks, RabbitMQ and NATS, optional PostgreSQL storage, and a built-in license management feature with registration, activation and heartbeat, which the Node.js version does not mention. Start with Evolution API unless memory use per number is your constraint: it has the larger community and the integrations.

Is Evolution API free?

The software is. The license is Apache 2.0 "with the following additional conditions," and two of them can turn a free deployment into one that needs a commercial license from the foundation:

  1. Logo and copyright. If you use Evolution API's frontend components, you may not remove or change the logo or copyright information in its console.
  2. Usage notification. If Evolution API is part of any project, closed-source products included, the system must show a clear notice that it is used, visible to administrators and reachable from the documentation or the settings page.

Read them before embedding it in a product you sell. The real cost is operations: a server, a database and Redis, storage for media, someone who updates the image when WhatsApp changes its web client, and, on the Cloud API integration, Meta's per-message fees.

What breaks in production?

An instance that looks connected and stops receiving. Release 2.3.8 fixed instances that stayed open and could send, but stopped receiving messages or received them hours late, and a connection that dropped with stream errored out about every 50 minutes. The cause was a new kind of status message from WhatsApp. If your numbers went quiet in November 2026, update before debugging anything else.

A year between stable releases. The fix above arrived 353 days after 2.3.7, with two 2.4.0 release candidates in between. Self-hosting means you carry that gap: pin the image version, watch the releases, and keep a way to patch.

A dependency on a release candidate. Version 2.3.8 applies its fix as a patch to Baileys 7.0.0-rc.9. A forked build, or one that skips the install step that applies the patch, runs without it.

A reference that disagrees with the code. As shown above, the send-text body differs between the published reference and the schema the server validates. A 400 on a request copied from the docs is usually this.

A QR code nobody scans. The example configuration limits how many QR codes are generated for one connection attempt (QRCODE_LIMIT=30), and a code left unscanned leaves the instance disconnected. Build the reconnect step into your product, with the QRCODE_UPDATED and CONNECTION_UPDATE events, so the number's owner can scan again without your help.

A number banned for how it was used. On the Baileys integration, the number is a regular WhatsApp account. WhatsApp's terms forbid "bulk messaging, auto-messaging, auto-dialing," and a server that sends the same message to hundreds of strangers gets its number banned whichever software sends it.

Should you self-host Evolution API or use a hosted WhatsApp API?

Self-host when WhatsApp is the product, your team owns servers anyway, and the license conditions fit. Use a hosted API when WhatsApp is one channel among several and you would rather not be on call for sessions:

OptionWhat you runPrice, per number a month
Evolution APIServer, database, Redis, updates, reconnectsFree software, plus your infrastructure
Whapi.CloudNothing$35 billed monthly, $29 billed annually
Swarmhit Raw API (early access)Nothing; your code keeps the logic$3.90, down to $2.50 with volume, from 15 accounts
Swarmhit Smart API, engine included (WhatsApp in early access)Nothing; the engine sequences WhatsApp with LinkedIn and email$16.90, down to $6.90 with volume, from 2 accounts

The Swarmhit Raw API is the like-for-like choice: one endpoint per WhatsApp action, numbers linked with a QR or pairing code, signed webhooks, a retried send that goes out once, and the same API for LinkedIn and email. The Swarmhit Smart API is the level above: a rep's own WhatsApp number joins the same sequence as their LinkedIn account and mailboxes, the engine paces each number, and a reply on any channel stops the follow-ups. Both are built for conversations a person would have anyway, such as following up a deal after a call, not for broadcasts. The WhatsApp channel page shows what each covers.

The other self-hosted options, Baileys used directly, whatsapp-web.js, whatsmeow and WAHA, are compared in our guide to the unofficial WhatsApp API, and the official partners in our guide to WhatsApp API providers.

WhatsApp sessions, without running the server

The Swarmhit Raw API links each number with a QR or pairing code and exposes WhatsApp next to LinkedIn and email, with signed webhooks and retry-safe sends. WhatsApp is in early access.

Swarmhit Raw API from $3.90 per number a month, 15 accounts minimum; Swarmhit Smart API from $16.90 per account.

FAQ

Is Evolution API official?

No. Evolution API is an open-source project of the Evolution Foundation, not a Meta or WhatsApp product. Its Baileys integration connects a regular WhatsApp account as a linked device, outside Meta's Business Platform. Its Cloud API integration does use Meta's official API, but you still register the business, the app and the number with Meta yourself, and Meta bills the messages.

Is Evolution API free to use commercially?

Yes, with conditions. The license is Apache 2.0 plus two additions: you may not remove the logo and copyright from its frontend components, and any system that uses it must display a clear notice saying so, visible to administrators. If you cannot meet them, the license asks you to obtain a commercial license from the foundation. Infrastructure, and Meta's fees on the Cloud API, are yours to pay.

What is the difference between Evolution API and Baileys?

Baileys is a TypeScript library: you write the server, the storage and the reconnect logic around it. Evolution API is a ready-made server built on Baileys, with a REST API, instances per number, webhooks, queues and bot integrations already there. You trade control for speed, and you inherit Evolution API's release schedule on top of Baileys' own.

Does Evolution API work with n8n?

Yes. The documentation lists a community node for n8n, and the server's webhooks, or its RabbitMQ and WebSocket events, can trigger any workflow tool. The README also lists n8n among its chatbot integrations, next to Typebot, Chatwoot, Dify, Flowise and OpenAI.

Can WhatsApp ban a number connected to Evolution API?

On the Baileys integration, yes. The number is a regular WhatsApp account, and WhatsApp's terms forbid bulk messaging, auto-messaging and auto-dialing. Numbers used for the conversations their owner would have anyway behave like normal accounts. Numbers used to message lists of strangers get banned, whatever the software. For volume to opted-in customers, the Cloud API integration is the supported route.

What is Evolution Go?

Evolution Go is the foundation's second WhatsApp engine, created in March 2026: a server written in Go on the whatsmeow library, with REST endpoints, webhooks, RabbitMQ and NATS events, and optional PostgreSQL storage. It is presented as the lighter, faster option. Evolution API, the Node.js server on Baileys, remains the one with the larger community and the bot and CRM integrations.

Alexandre Risser

Written by

Alexandre Risser

Swarmhit

Building Swarmhit. Writes about LinkedIn outreach, multi-sender infrastructure, and outbound that books meetings.

Ready to add WhatsApp follow-ups to your product?

The Swarmhit Smart API links each rep's own WhatsApp number and runs it in the same sequences as LinkedIn and email, paced by the engine and stopped on reply. WhatsApp is in early access.

Keep reading