# WhatsApp Cloud API rate limits: throughput and pair rate

> The WhatsApp Cloud API limits on messages per second, messages per user and API calls per hour, the errors each returns, and a queue that respects them.

Published 2026-11-02. Z-API Omni team.

The WhatsApp Cloud API sends up to 80 messages per second from each business phone number by default, and returns error 130429 when you go faster. A second limit applies to each recipient. One business number can send one message every 6 seconds to the same WhatsApp user, and exceeding that returns error 131056. A queue with a token bucket per number and a minimum gap per recipient avoids both. The numbers below come from Meta's throughput page and platform overview, updated in June and August 2026.

## Throughput per number and error 130429

Meta's throughput page states the base rule per registered number. "Cloud API supports up to 80 messages per second (mps) by default, and up to 1,000 mps by automatic upgrade" ([Meta throughput page, accessed 2026-11-02](https://developers.facebook.com/documentation/business-messaging/whatsapp/throughput)). Above that rate, "the API will return error code 130429 until you are within your allowed level again."

The 80 is not all yours for outbound. "Throughput is inclusive of inbound and outbound messages and all message types". A number that receives replies while a campaign runs shares the same budget, so set your sender below 80.

Numbers that also run on the WhatsApp Business app have a lower ceiling. Meta gives them "a fixed throughput of 20 mps" so they remain compatible with the app.

You can read the current level with `GET /<WHATSAPP_BUSINESS_PHONE_NUMBER_ID>?fields=throughput`. Build your rate from that value instead of hard-coding 80.

## How throughput goes up

Meta describes the upgrade to 1,000 mps as automatic and "at no cost to you" for numbers that meet three conditions on the same page. The business portfolio's messaging limit must be at its top level, which Meta calls unlimited. The number must message "100K or more unique WhatsApp user phone numbers, outside of a customer service window, within a moving 24-hour period". And its `quality_score` must be `YELLOW` or higher.

The upgrade takes the number offline briefly. "The upgrade process itself can take up to 1 minute", and requests in that minute get error 131057. When it finishes, a `phone_number_quality_update` webhook arrives with `event` set to `THROUGHPUT_UPGRADE`. Treat 131057 as a short pause, and re-read the throughput field when that webhook lands.

Two more instructions on the page matter at high rates. Upload media and send the returned media ID instead of a URL on your own server. And size your webhook servers for "3x the capacity of outgoing message traffic and 1x the capacity of expected incoming message traffic". Meta's example is 1,000 mps outbound with a 30% response rate, which means up to 3,000 status webhooks plus 300 inbound message webhooks. Meta also asks for a median webhook latency under 250 ms, and fewer than 1% of responses over 1 s.

## The pair rate limit and error 131056

Throughput is meant for messages to many different users. Meta's platform overview sets the per-user rule. "Business phone numbers can send 1 message every 6 seconds to the same WhatsApp user (0.17 messages/second)". That "equals about 10 messages per minute or 600 per hour" ([Meta platform overview, accessed 2026-11-02](https://developers.facebook.com/documentation/business-messaging/whatsapp/about-the-platform)). Going over "triggers error code 131056 until you are back within the allowed rate."

Bursts are allowed and paid back later. Meta says "You may send up to 45 messages in a 6-second burst", and that this "borrows" from your future quota. Meta's example is a burst of 20, which "requires a ~2-minute wait before sending more to that user". For retries the overview gives a schedule: "retry after 4^X seconds", with X starting at 0 and growing by 1 after each failure.

Meta's error reference describes 131056 as "Too many messages sent from the sender phone number to the same recipient phone number" ([Meta error codes reference, accessed 2026-11-02](https://developers.facebook.com/documentation/business-messaging/whatsapp/support/error-codes)). Its fix adds that "You can still send messages to a different phone number without waiting." Only the one recipient is paused.

A chatbot that answers in several short messages hits this first. Five bubbles in two seconds is a burst that borrows the next 30 seconds of that user's quota. Merge them into one message, or space them.

## API call limits and messaging limits

Management calls have their own hourly budget. On endpoints such as `/<WHATSAPP_BUSINESS_ACCOUNT_ID>/message_templates` and `/phone_numbers`, "your app can make 200 requests per hour, per app, per Messaging account, by default". Accounts with at least one registered number get 5,000 requests per hour (platform overview). Meta's Graph API rate limiting page explains the `X-Business-Use-Case-Usage` header, whose `call_count` is the percentage of allowed calls used ([Graph API rate limiting](https://developers.facebook.com/docs/graph-api/overview/rate-limiting/)). That page lists error code 80008 for the WhatsApp Business Management API. The WhatsApp error reference lists 80007 for "The WhatsApp Business Account has reached its rate limit", and code 4 for the app-wide limit. Back off and retry later on all three.

Messaging limits are a different axis. They cap the unique WhatsApp users your business can deliver messages to "outside of a customer service window, within a moving 24-hour period" ([Meta messaging limits, accessed 2026-11-02](https://developers.facebook.com/documentation/business-messaging/whatsapp/messaging-limits)). New business portfolios start at 250, and all numbers in a portfolio share the limit. Read it from the `whatsapp_business_manager_messaging_limit` field. Marketing templates also meet a per-user limit, covered in [WhatsApp error 131049](/academy/articles/whatsapp-error-131049-marketing-message-not-delivered/).

## A sending queue that respects both limits

The queue needs two controls. A token bucket per business number caps the rate below throughput. A per-recipient reservation keeps at least 6 seconds between messages to the same user. The script below does both for one number in Node.js 18 or later, sending a text message through the documented `/messages` endpoint ([Meta send messages guide](https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/send-messages)). Free-form text only goes through inside an open customer service window; use a template payload outside it.

```js
// queue.mjs. Run: PHONE_NUMBER_ID=... ACCESS_TOKEN=... node queue.mjs 15551234567 "Your order shipped"
const PHONE_NUMBER_ID = process.env.PHONE_NUMBER_ID;
const ACCESS_TOKEN = process.env.ACCESS_TOKEN;
const MPS = 60;           // below the 80 mps default, leaves room for inbound traffic
const PAIR_GAP_MS = 6000; // 1 message every 6 seconds to the same user
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));

class TokenBucket {
  constructor(rate) { this.rate = rate; this.tokens = rate; this.last = Date.now(); }
  async take() {
    for (;;) {
      const now = Date.now();
      this.tokens = Math.min(this.rate, this.tokens + ((now - this.last) / 1000) * this.rate);
      this.last = now;
      if (this.tokens >= 1) { this.tokens -= 1; return; }
      await sleep(((1 - this.tokens) / this.rate) * 1000);
    }
  }
}

const bucket = new TokenBucket(MPS);
const nextSlot = new Map(); // recipient -> earliest send time in ms

function reserve(to, extraMs = 0) {
  const slot = Math.max(Date.now(), nextSlot.get(to) ?? 0) + extraMs;
  nextSlot.set(to, slot + PAIR_GAP_MS);
  return slot - Date.now();
}

async function post(to, body) {
  const res = await fetch(`https://graph.facebook.com/v26.0/${PHONE_NUMBER_ID}/messages`, {
    method: 'POST',
    headers: { Authorization: `Bearer ${ACCESS_TOKEN}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({ messaging_product: 'whatsapp', to, type: 'text', text: { body } }),
  });
  const json = await res.json();
  return { ok: res.ok, code: json.error?.code, json };
}

export async function send(to, body) {
  let extraMs = 0;
  for (let x = 0; x < 6; x++) {
    await sleep(Math.max(0, reserve(to, extraMs)));
    await bucket.take();
    const r = await post(to, body);
    if (r.ok) return r.json;
    if (r.code === 131056) { extraMs = 4 ** x * 1000; continue; } // Meta: retry after 4^X seconds
    if (r.code === 130429 || r.code === 131057) { extraMs = 1000; continue; }
    throw new Error(JSON.stringify(r.json)); // not a rate problem: do not retry
  }
  throw new Error(`gave up sending to ${to}`);
}

if (process.argv[2]) console.log(await send(process.argv[2], process.argv[3] ?? 'test'));
```

The reservation happens before any `await`, so two calls for the same user in the same tick get slots 6 seconds apart. Everything that is not a rate code is thrown, because 131026, 131047 and the template errors do not improve with time. The [WhatsApp Cloud API error codes reference](/academy/articles/whatsapp-cloud-api-error-codes-reference/) sorts the rest.

This state lives in one process. With several workers, move the bucket and the `nextSlot` map into Redis, keyed by phone number ID and by recipient. Keep one bucket per business number, since throughput is set per number.

*Z-API Omni team*
