Menu

5 WhatsApp Cloud API gotchas that cost me hours (and how to avoid them)
📰

5 WhatsApp Cloud API gotchas that cost me hours (and how to avoid them)

DEV Community: nextjs·lamaizi hajar·about 8 hours ago
#oLVhcAw6
#devtonextjs#devto#dev#message#meta
Long article (449 words) — no AI summary yet.
Reading 0:00
15s threshold

The WhatsApp Cloud API is great once it works. Getting there is the problem: the first message is easy, then everything quietly breaks. Here are the five things that cost me the most time.

* 1. "Accepted" does not mean "delivered"

*

You call the messages endpoint, Meta answers 200 with a message id, and nothing arrives on the phone. The API only tells you the request was accepted. The real outcome comes later, as a status in your webhook: sent, delivered, read, or failed with an error code.

If you do not handle statuses, failures are invisible. Log every failed status with its error code from day one.

2. The temporary token dies after 24 hours

The token on the API Setup page is for testing. It expires after about 24 hours and you get error 190.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.