Updated on October 29, 2026
Yes, you can run Evolution API on the official WhatsApp Business API. In version 2, besides the WHATSAPP-BAILEYS integration (which connects through a QR code), there is a WHATSAPP-BUSINESS integration that talks to Meta’s WhatsApp Cloud API using an access token, a Phone Number ID and a webhook. Setting it up takes three things: an app and a phone number on Meta, the WA_BUSINESS_* variables on your Evolution server, and the /webhook/meta URL registered in Meta’s dashboard.
This guide walks through the setup, what changes if you are coming from Baileys mode (templates, the 24-hour window and cost), and when it makes more sense to call the official API directly, without Evolution in between.
The two modes of Evolution API
Evolution API is an open-source project widely used in Brazil to connect WhatsApp to CRMs, chatbots and tools such as n8n and Typebot. In the v2 source code, the integrations look like this:
Prefer to see it in practice? Watch the step by step in the video below.
Video in Portuguese (with subtitles)
| Integration | How it connects | Who controls the channel |
|---|---|---|
WHATSAPP-BAILEYS | A WhatsApp Web session via QR code, using the Baileys library | Reverse engineering, no agreement with Meta |
WHATSAPP-BUSINESS | HTTP calls to the Cloud API (graph.facebook.com) with a token | Meta, through the WhatsApp Business Platform |
The key point: ban risk and sending rules depend on the channel, not on the tool’s name. A WHATSAPP-BUSINESS instance follows the official API rules (templates, the customer service window, messaging limits, per-message billing). A Baileys instance carries the risks of an unauthorized session. The differences are covered in official vs. unofficial WhatsApp API.
What you need before you start
On Meta’s side:
- A business portfolio (formerly Business Manager), ideally verified.
- An app in the developer dashboard with the WhatsApp product added.
- A phone number registered on the Cloud API. A number active on regular WhatsApp must be freed first; a WhatsApp Business app number can join through coexistence and stay on the phone.
- A permanent token from a system user with the
whatsapp_business_messagingandwhatsapp_business_managementpermissions. Evolution’s docs recommend a permanent token precisely so the instance does not stop when a temporary token expires. Step by step: WhatsApp API permanent access token. - Phone Number ID and WABA ID (the WhatsApp Business Account ID). Both appear in the app dashboard; see where to find the Phone Number ID and WABA ID.
- A payment method on the account, since Meta charges per delivered message.
On Evolution’s side:
- A v2 installation reachable over public HTTPS (Meta does not deliver webhooks to
localhost). - The global
AUTHENTICATION_API_KEY, sent in theapikeyheader.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Step 1: set the WA_BUSINESS variables
The .env.example in the official repository has a dedicated Cloud API block:
WA_BUSINESS_TOKEN_WEBHOOK=evolution
WA_BUSINESS_URL=https://graph.facebook.com
WA_BUSINESS_VERSION=v20.0
WA_BUSINESS_LANGUAGE=en_US
What each one does:
WA_BUSINESS_TOKEN_WEBHOOK: the verify token Meta sends in the webhook verification challenge. Replaceevolutionwith a random value and keep it, because you will type the same value in Meta’s dashboard.WA_BUSINESS_URL: the Graph API base. Keephttps://graph.facebook.com.WA_BUSINESS_VERSION: the Graph API version used in calls. The example ships withv20.0; check Meta’s changelog to confirm the version is still supported and update it when needed.WA_BUSINESS_LANGUAGE: default language for templates.
Also check SERVER_URL. Evolution builds Meta’s webhook URL from it: ${SERVER_URL}/webhook/meta. If SERVER_URL points to an internal address, the generated URL will not work for Meta.
Step 2: create the instance with the WHATSAPP-BUSINESS integration
Creation uses the same endpoint as Baileys instances, with different fields:
curl -X POST https://evolution.yourcompany.com/instance/create \
-H "apikey: YOUR_AUTHENTICATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instanceName": "store-official",
"integration": "WHATSAPP-BUSINESS",
"token": "EAAG...PERMANENT_TOKEN",
"number": "123456789012345",
"businessId": "987654321098765",
"qrcode": false
}'
Watch out for two fields that trip people up:
numberis not the phone number. In theWHATSAPP-BUSINESSintegration it takes Meta’s Phone Number ID. In the code, Evolution builds calls asWA_BUSINESS_URL/WA_BUSINESS_VERSION/{number}/..., which is exactly the Cloud API’sgraph.facebook.com/vXX.X/{phone_number_id}/messagesformat. If you put5511999999999there, calls fail.tokenis the Meta token, not a key you make up for the instance.
businessId takes the WABA ID, used by the template routes. qrcode stays false, because there is no QR code in this mode.
Step 3: register the webhook in Meta’s dashboard
In the Meta app, under WhatsApp > Configuration, fill in:
| Field in Meta’s dashboard | Value |
|---|---|
| Callback URL | https://evolution.yourcompany.com/webhook/meta |
| Verify token | the same value as WA_BUSINESS_TOKEN_WEBHOOK |
| Subscribed fields | messages (incoming messages and statuses) |
When you save, Meta sends a GET with hub.verify_token and hub.challenge. Evolution’s /webhook/meta route compares the token with WA_BUSINESS_TOKEN_WEBHOOK and returns the challenge. If the token does not match, it returns an error string and Meta rejects the URL.
Once verified, events arrive by POST on the same route. Evolution identifies the instance by each event’s phone_number_id and forwards the content to the integrations configured on it.
If the URL was verified but no messages show up, check that the app is subscribed to the WhatsApp Business Account (subscribed_apps) and that the messages field is subscribed. The full checklist is in WhatsApp webhook not arriving? 10-step checklist.
Step 4: send messages and templates
For free-form text inside the customer service window, you use Evolution’s regular send routes (/message/sendText/{instance} and similar). Evolution translates the request into the Cloud API payload.
To start a conversation, use a template:
curl -X POST https://evolution.yourcompany.com/message/sendTemplate/store-official \
-H "apikey: YOUR_AUTHENTICATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "5511999999999",
"name": "order_confirmation",
"language": "en_US",
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Maria" },
{ "type": "text", "text": "#12345" }
]
}
]
}'
Here number is the recipient’s phone number again. Templates can also be managed through Evolution: POST /template/create/{instance}, GET /template/find/{instance}, POST /template/edit/{instance} and DELETE /template/delete/{instance}. Under the hood, these routes call Meta’s template API with the instance’s businessId.
What changes when you migrate from Baileys to the Cloud API
Switching from WHATSAPP-BAILEYS to WHATSAPP-BUSINESS is more than a config change. The business rules change:
| Topic | Baileys instance | WHATSAPP-BUSINESS instance (Cloud API) |
|---|---|---|
| Connection | QR code on the phone | Token, Phone Number ID and webhook |
| Starting a conversation | Free-form text | Approved template only |
| Replying | Any time | Free-form inside the 24-hour window; template outside it |
| Message cost | No Meta charge | Per delivered message, by category and country |
| History | Lives in the session | Not migrated automatically from the Baileys session |
| Ban risk caused by the tool | High | No; risk comes from quality and policy |
Templates and the 24-hour window
Flows that send free-form messages today (reminders, billing, welcome messages) need to become templates with a defined category. On the Cloud API, a free-form message outside the window returns error 131047. Review how Meta classifies each one in WhatsApp template categories.
Cost
Meta charges per delivered message. For recipients in Brazil, rates since October 1, 2026 are BRL 0.3217 per marketing message and BRL 0.0350 per utility, authentication or service message. Each phone number gets 1,000 free service messages per month; from message 1,001 on, they are billed. Utility templates sent inside the customer service window also became billable on October 1, 2026. Rates for other countries follow Meta’s rate card.
Because Evolution is self-hosted, it does not handle this billing: you pay Meta directly, using the payment method on your account.
The phone number
If the number currently runs on a Baileys session (regular WhatsApp or the Business app connected via QR code), it has to be on the Cloud API before the new instance works. With the WhatsApp Business app, coexistence lets you keep the phone. With regular WhatsApp, the number must be freed. The migrate to the official WhatsApp API guide covers both paths.
Migration checklist
- Create the app, phone number and permanent token on Meta.
- Update
WA_BUSINESS_*andSERVER_URLand restart Evolution. - Create the
WHATSAPP-BUSINESSinstance with the Phone Number ID and WABA ID. - Register
/webhook/metain Meta’s dashboard and subscribe tomessages. - Create and get approval for the templates that replace free-form messages.
- Update chatbot and CRM flows to handle error
131047and delivery statuses. - Test with an internal number before turning off the old instance.
- Disconnect the Baileys session for the same number.
Alternative: call the official API directly with Vectalk
If you used Evolution only to get a WhatsApp API with webhooks, consider the shorter path. With the WHATSAPP-BUSINESS integration you are already on the official API, but you still operate the Evolution server, the Meta app, the token, the webhook and the payment method.
Vectalk is a proxy for Meta’s official WhatsApp Cloud API: your application sends the same Meta payload to https://apis.vectalk.com.br/api/messages, and webhooks arrive in the format documented by Meta. Billing works differently from a direct integration: you pay the plan’s monthly fee and load prepaid credit on the platform, Vectalk attaches its own line of credit to your number, and each delivered message is deducted from your balance. You do not add a card on Meta.
curl -X POST https://apis.vectalk.com.br/api/messages \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messaging_product": "whatsapp",
"to": "5511999999999",
"type": "template",
"template": {
"name": "order_confirmation",
"language": { "code": "en_US" },
"components": [
{ "type": "body", "parameters": [
{ "type": "text", "text": "Maria" },
{ "type": "text", "text": "#12345" }
] }
]
}
}'
To be clear about scope: Vectalk has no agent inbox, bulk sender or AI in its dashboard. The dashboard handles instances (profile, IDs, webhooks, API keys, test message), templates with a Template Library, logs and invoices. If you use Evolution as a bridge to Chatwoot, Typebot or n8n, those tools remain where support and automation happen; with Vectalk, they consume the API and webhooks directly. The official WhatsApp API guide explains the model, and the documentation lists the endpoints. To try it, sign up at apps.vectalk.com.br/register.
Frequently asked questions
Is Evolution API official?
Evolution API is an open-source project, not a Meta product. It has one integration that uses the official API (WHATSAPP-BUSINESS) and one that does not (WHATSAPP-BAILEYS). What is official is the channel, the Cloud API, when you choose that integration.
Does the number field take the phone number or the Phone Number ID?
When creating a WHATSAPP-BUSINESS instance, it takes Meta’s Phone Number ID. In send routes such as sendTemplate, number is the recipient’s phone number in international format.
Can I keep my Baileys instance and just switch the integration?
No. Create a new instance with integration: "WHATSAPP-BUSINESS". The Baileys session history is not transferred to the Cloud API, and the number must be registered with Meta.
Do I pay Meta when using Evolution?
Yes, in WHATSAPP-BUSINESS mode. Billing is per delivered message and goes to the payment method on your Meta account. Evolution does not handle that payment.
Can I test without shutting down the Baileys instance?
Yes, as long as you use a different number for the WHATSAPP-BUSINESS instance. The same number should not be on a Baileys session and the Cloud API at the same time: finish testing with an internal number, then migrate your main number.
Official sources checked on October 29, 2026: Evolution API: Cloud API integration, EvolutionAPI/evolution-api repository (.env.example and routes), WhatsApp Cloud API pricing, Cloud API error codes, Vectalk documentation.
Try the official WhatsApp API today
Create your account, generate a token and send your first message with the quick-start guide. Same payloads and webhooks as Meta's Cloud API.
