Skip to main content

Overview

The WhatsApp Business API is Meta’s official solution for enterprise-scale WhatsApp integration. Unlike Baileys, it requires official credentials and provides higher rate limits, better reliability, and advanced business features.
You need a Meta Business Account and approved WhatsApp Business API access to use this provider.

Prerequisites

1

Create Meta Business Account

Sign up for a Meta Business Account at business.facebook.com
2

Request WhatsApp API Access

Apply for WhatsApp Business API access through Meta Business Manager
3

Get API Credentials

Obtain your:
  • Phone Number ID
  • WhatsApp Business Account ID
  • Access Token
4

Configure Webhook

Set up webhook verification token in Meta’s developer console

Configuration

Configure Evolution API to use WhatsApp Business API:
.env

Configuration Options

The webhook token must match the verification token you set in Meta’s developer console.

Creating an Instance

Create a Business API instance with your credentials:

Instance Properties

  • token: Your WhatsApp Business API access token
  • number: Phone Number ID (not the actual phone number)
  • businessId: WhatsApp Business Account ID

Connection Flow

Unlike Baileys, the Business API doesn’t require QR code authentication:
1

Instant Connection

Business API instances connect immediately when created:
The connection state is always 'open' since authentication is handled via API tokens.
2

Webhook Setup

Configure webhook URL to receive messages:
3

Verify Webhook

Meta sends verification requests to your webhook URL:

Sending Messages

The Business API supports all standard message types with the same Evolution API interface:
Internally converts to Meta’s format:

Receiving Messages

Meta sends webhook notifications to your configured endpoint:
Evolution API normalizes this to standard message format:

Message Status Updates

Track message delivery and read status:

Status Types

Evolution API emits messages.update events:

Business Profile

Update your business profile information:
Implementation:

API Version Management

Meta regularly updates the Graph API. Evolution API tracks the configured version:
Update WA_BUSINESS_VERSION when Meta releases new API versions to access latest features.

Version History

  • v20.0: Current recommended version
  • v19.0: Previous stable version
  • v18.0: Legacy support
Check Meta’s API Changelog for updates.

Rate Limits

Business API has tiered rate limits based on your account:
Your tier increases automatically based on message quality and volume. Start at Tier 1 and scale up.

Differences from Baileys

Pricing

WhatsApp Business API uses conversation-based pricing:
  • User-initiated: Conversations started by customer (cheaper)
  • Business-initiated: Conversations started with templates (higher cost)
  • Free tier: 1,000 free conversations per month
Pricing varies by country. See Meta’s pricing page for details.

Best Practices

1

Use Templates Wisely

Pre-approve message templates for business-initiated conversations. Keep templates generic enough for reuse.
2

Monitor Quality

Meta monitors message quality. Low ratings can result in rate limit reductions.
3

Handle Webhooks Efficiently

Respond to webhook requests quickly (under 5 seconds) to avoid retries.
4

Implement Fallbacks

Handle API errors gracefully and implement retry logic for failed messages.

Troubleshooting

Webhook Not Receiving Messages

Verify webhook token matches Meta’s configuration:
.env

Authentication Errors

Check your access token is valid and has correct permissions:

Template Rejection

Ensure templates follow Meta’s guidelines:
  • No promotional content in utility templates
  • Proper variable formatting
  • Compliant with messaging policies

Next Steps

Template Messages

Create and send template messages

Webhooks

Configure webhook events

Baileys Comparison

Compare with free Baileys provider

Connection Management

Manage Business API connections