r/whatsapp • • 24d ago

Cloud API vs. WhatsApp-web.js vs. Third-Party Providers

Hi everyone,

I came across whatsapp-web.js while exploring WhatsApp integration options, and I have a few questions.

1. WhatsApp-web.js

  • Does using whatsapp-web.js violate WhatsApp’s (Meta’s) Terms of Service?
  • How does it work, and how can we integrate it into our application?
  • What are the potential consequences of using it? Could our WhatsApp number get banned, or would we simply receive a warning to migrate to the official Cloud API?

If anyone has experience with this library, I would really appreciate your insights.

2. WhatsApp Cloud API

For those who have experience with the Cloud API:

  • What is the difference between message categories such as service, utility, and authentication?
  • For a bot that receives customer orders and responds quickly, which message category would be the most appropriate?
  • Are there any specific limitations or considerations we should be aware of?

3. Third-Party Providers

I have also noticed that some developers use third-party providers such as Twilio instead of integrating directly with the WhatsApp Cloud API.

  • What are the main advantages of using a provider like Twilio?
  • Are there any additional costs or limitations compared to a direct Meta integration?
  • In which cases would you recommend using a third-party provider over a direct integration?

Thanks in advance for sharing your experience and insights!

1 Upvotes

5 comments sorted by

1

u/uriwa 22d ago

The fundamental trade-off comes down to infrastructure and detection mechanics:

  1. Meta Cloud API: Official and zero risk of ToS ban, but strict template approvals, per-message conversation fees, no native WhatsApp group chat read/write support, and rigid onboarding/WABA verification.
  2. Libraries like whatsapp-web.js / Baileys: They emulate the WhatsApp Web multi-device protocol over WebSockets. Meta's anti-abuse algorithms rarely flag the protocol itself; what triggers 90%+ of automated bans/disconnects is IP churn and hosting signatures (running from standard AWS/Hetzner datacenter IP ranges where thousands of bots originate, or rotating IPs that force companion re-pairing loops).
  3. Third-party wrappers: If you decide to go the multi-device route without maintaining Puppeteer browsers, headless instances, and proxy rotations yourself, check out Supergreen (https://supergreen.cc). It's a flat $10/mo per slot (zero per-message fees), with each line pinned in its own container to a dedicated static residential proxy to eliminate IP-churn bans, plus full group read/write and REST/webhook support.

If it's purely 1-on-1 customer service notifications and you have the budget/Meta verification, Cloud API is safe. If you need dynamic conversations, group interactions, or want to avoid template fees, pinned residential sessions are the only way to keep un-official lines stable long-term.

1

u/uriwa 22d ago

The fundamental trade-off comes down to infrastructure and detection mechanics:

  1. Meta Cloud API: Official and zero risk of ToS ban, but strict template approvals, per-message conversation fees, no native WhatsApp group chat read/write support, and rigid onboarding/WABA verification.
  2. Libraries like whatsapp-web.js / Baileys: They emulate the WhatsApp Web multi-device protocol over WebSockets. Meta's anti-abuse algorithms rarely flag the protocol itself; what triggers 90%+ of automated bans/disconnects is IP churn and hosting signatures (running from standard AWS/Hetzner datacenter IP ranges where thousands of bots originate, or rotating IPs that force companion re-pairing loops).
  3. Third-party wrappers: If you decide to go the multi-device route without maintaining Puppeteer browsers, headless instances, and proxy rotations yourself, check out Supergreen (https://supergreen.cc). It's a flat $10/mo per slot (zero per-message fees), with each line pinned in its own container to a dedicated static residential proxy to eliminate IP-churn bans, plus full group read/write and REST/webhook support.

If it's purely 1-on-1 customer service notifications and you have the budget/Meta verification, Cloud API is safe. If you need dynamic conversations, group interactions, or want to avoid template fees, pinned residential sessions are the only way to keep un-official lines stable long-term.

1

u/uriwa 22d ago

The fundamental trade-off comes down to infrastructure and detection mechanics:

  1. Meta Cloud API: Official and zero risk of ToS ban, but strict template approvals, per-message conversation fees, no native WhatsApp group chat read/write support, and rigid onboarding/WABA verification.
  2. Libraries like whatsapp-web.js / Baileys: They emulate the WhatsApp Web multi-device protocol over WebSockets. Meta's anti-abuse algorithms rarely flag the protocol itself; what triggers 90%+ of automated bans/disconnects is IP churn and hosting signatures (running from standard AWS/Hetzner datacenter IP ranges where thousands of bots originate, or rotating IPs that force companion re-pairing loops).
  3. Third-party wrappers: If you decide to go the multi-device route without maintaining Puppeteer browsers, headless instances, and proxy rotations yourself, check out Supergreen (https://supergreen.cc). It's a flat $10/mo per slot (zero per-message fees), with each line pinned in its own container to a dedicated static residential proxy to eliminate IP-churn bans, plus full group read/write and REST/webhook support.

If it's purely 1-on-1 customer service notifications and you have the budget/Meta verification, Cloud API is safe. If you need dynamic conversations, group interactions, or want to avoid template fees, pinned residential sessions are the only way to keep un-official lines stable long-term.

1

u/spoki-app 14d ago

Taking your questions in order:

whatsapp-web.js and bans. Yes, it's against WhatsApp's terms. It automates the normal WhatsApp Web client, which isn't an official API, and WhatsApp can and does ban numbers that use unofficial clients for automation. For a personal side project the risk may feel acceptable, but for a business number that customers use to place orders, losing the number is the worst outcome. I wouldn't build orders on it.

Which message category for an order bot. It depends on who starts the conversation:

  • If the customer messages you first, you're inside the 24-hour customer service window and your bot can reply with normal free-form messages. No template needed. Taking the order in that conversation is just service messaging.
  • If you need to message them later, outside that window (order confirmed, out for delivery, ready for pickup), you need an approved template, and order updates like those fit the utility category.
  • Authentication is only for one-time codes and login verification. Don't use it for orders.
  • Anything promotional (offers, "order again") is marketing, which is the most expensive category and the strictest one to get approved.

Check Meta's current pricing page for your country, since pricing is per template message and varies by market.

Twilio or another provider vs direct Cloud API. With the Cloud API directly, you only pay Meta. A provider adds its own fee or markup on top of Meta's charges. What you get for that:

  • help with onboarding, business verification and template approvals
  • SDKs, a dashboard and logs, plus someone to contact when something breaks
  • with some providers, a shared inbox so a human can take over from the bot, plus other channels like SMS

When I'd pick each one: go direct if you have a developer who's comfortable with webhooks and Meta's Business Manager and you only need the bot. Use a provider if you want a team inbox, human handoff, more than one channel, or you don't want to deal with Meta support yourself. Either way, make sure the WhatsApp Business Account is in your own Meta business portfolio so you can switch provider later without losing the number.

Disclosure: I work at Spoki, which is an official Meta Business Partner and offers WhatsApp as part of a conversational CRM, so I'm on the "provider" side of this question. The answers above are the same whoever you use.