Error 131057: WhatsApp number in maintenance mode
Error 131057 means the account is in maintenance, and one documented case is a throughput upgrade of up to 1 minute. See what to do and how not to misread it.
131057 is one of the few Cloud API errors that almost always resolves itself. It appears during a short window in which the number is unavailable, and the worst thing an integrator can do is treat it as a serious failure: bring the channel down, page the team at night or mark the number as disconnected. The right response is a short wait and a resend with backoff.
What 131057 means
Short answer: 131057 means the WhatsApp business account is in maintenance mode. Meta's error codes table notes that the cause may be a throughput upgrade and says to wait for it to finish.
The word "possibly" in Meta's text matters: the documentation reviewed names the throughput upgrade as a cause but does not promise it is the only one. So the safe handling serves both hypotheses: wait and retry, and investigate if the error does not pass.
The documented case: throughput upgrade
Short answer: when a number moves from 80 to 1,000 messages per second, the upgrade is automatic and can take up to 1 minute. During that time the number is unusable and requests return error 131057.
Meta's throughput page lists the three conditions for the upgrade: a business portfolio with an unlimited messaging limit, the number messaging 100K or more unique user numbers outside service windows in a moving 24-hour period, and the number's quality score yellow or better. The upgrade is free and has no effect on pricing, and later increases, according to Meta, happen without downtime. When the upgrade ends, a phone_number_quality_update webhook fires with the THROUGHPUT_UPGRADE event and the daily limit at TIER_UNLIMITED.
| Signal | What it indicates | Action |
|---|---|---|
| 131057 on requests, no other error | Probable maintenance or an upgrade in progress | Wait about a minute and resume |
| phone_number_quality_update webhook with THROUGHPUT_UPGRADE | The upgrade finished | Resume the queue and readjust the rate limiter |
| 131057 persisting well beyond a minute | It may not be the upgrade | Investigate and open a support ticket if needed |
How to react in code
Short answer: treat 131057 as temporary unavailability. Hold the number's queue for a short interval and resume with exponential backoff, without marking the channel as disconnected.
// 131057: short pause on the number, not a channel failure
const pausedUntil = new Map() // phone_number_id -> timestamp
function onError(phoneNumberId, code) {
if (code !== 131057) return
const until = Date.now() + 60_000 // one minute, as in the documented upgrade
pausedUntil.set(phoneNumberId, Math.max(until, pausedUntil.get(phoneNumberId) ?? 0))
}
function canSend(phoneNumberId) {
return (pausedUntil.get(phoneNumberId) ?? 0) <= Date.now()
}The minute in the example comes from the upgrade's maximum duration, according to Meta. If the error persists after it, lengthen the interval progressively and, after a few minutes, treat it as an incident. Do not discard the messages in the queue: they remain valid, and the Idempotency-Key prevents duplication if you resend one that was in the end accepted.
Not confusing it with other unavailability
Short answer: 131057 is temporary maintenance. An unregistered number, a restricted account and a speed limit have their own codes and opposite handling.
- 133010 indicates a number not registered on the platform. Waiting does not fix it; you must register again.
- 131031 and 368 indicate a restricted or disabled account. Waiting a minute does not help; the policy issue must be handled.
- 130429 indicates throughput reached. The fix is to lower the rate, not to wait for maintenance.
- In the Hub, 409 CHANNEL_NOT_CONNECTED indicates the channel is not connected, which is a Hub state, not a Meta one.
A common mix-up is confusing the end of the upgrade with the start of a 130429: right after moving to 1,000 messages per second, your old limiter, calibrated for 80, remains conservative, which is safe. The reverse is dangerous: a limiter calibrated for 1,000 on a number still at 80 produces 130429.
How 131057 reaches you through the Hub
Short answer: as a Meta refusal on the call itself, 502 META_SEND_FAILED with details.meta_code 131057, or after the 202, as message.status with status failed.
To follow the end of the upgrade without querying Meta, subscribe to the number quality events. The Hub's list of subscribable events includes phone.quality, and the Meta webhook that announces the upgrade is phone_number_quality_update; check the event format on the webhooks page before depending on it. The quickstart shows the send call and the use of the Idempotency-Key on a resend.
When to escalate to support
Short answer: if 131057 repeats for longer than the documented minute, or appears on a number that should not be upgrading, treat it as an incident and open a ticket.
- Note the phone_number_id, the time of the first and the last occurrence and the identifier of a few affected messages.
- Check whether the number is eligible for the upgrade, by looking at whether the portfolio has an unlimited limit and whether quality is yellow or better.
- Query the throughput level with GET /<PHONE_NUMBER_ID>?fields=throughput, to know which level the number is at.
- If none of that explains it, open a Meta Direct Support ticket with the notes.
An illustrative timeline
Short answer: the typical pattern of an upgrade is a short run of failures followed by normality. The times below are invented, only to show the shape.
| Time | What your system sees | Conduct |
|---|---|---|
| 10:00:00 | Normal sends, 2xx and delivered statuses | Nothing to do |
| 10:00:41 | First 131057 | Pause the number's queue for 60 seconds |
| 10:01:05 | More 131057 from in-flight sends | Extend the pause to 10:01:41, without discarding messages |
| 10:01:41 | Resume with a few test sends | Reopen the queue gradually |
| 10:02:10 | Normal sends and, if it happens, the THROUGHPUT_UPGRADE webhook | Readjust the rate limiter |
The detail that matters most is the gradual resume: after a pause, releasing the whole queue at once can produce a spike above the throughput and swap 131057 for a 130429. Reopen the queue in steps, watching the responses.
How to test your handling
Short answer: simulate the failure in your test environment instead of waiting for a real upgrade. The behavior that matters, pause, resume and queue preservation, is testable without Meta.
- Make the test send client return 502 META_SEND_FAILED with details.meta_code 131057 for one minute and then go back to normal.
- Check that no message was lost or duplicated at the end of the test, counting by Idempotency-Keys.
- Check that the channel was not marked as disconnected and that no incident alert fired in the first seconds.
- Check that the resume is gradual, by watching the send pace after the pause.
That test works as a contract for any temporary error you decide to handle the same way, and it is cheap: it runs in seconds and avoids discovering the wrong behavior during a real campaign.
Good practices for unavailability windows
Short answer: design the queue to absorb short pauses without losing messages. That care serves 131057 and any temporary error.
A durable queue with backoff resend and an attempt cap solves most cases. Define a maximum age per message: a confirmation message that loses its usefulness after 10 minutes should not sit in the queue for an hour. Log each pause per number so that you can later relate a delay spike to an upgrade. And tell the client, if relevant, that the number went through a short maintenance, since the delay may affect time-sensitive messages.
Frequently asked questions
How long does 131057 last?
In the documented case, the throughput upgrade takes up to 1 minute, during which the number is unavailable. The documentation reviewed gives no duration for other causes.
Do I need to do anything for the upgrade to happen?
No. The upgrade is automatic when the portfolio has an unlimited limit, the number reaches 100K unique users in 24 hours outside windows and quality is yellow or better.
Is 131057 billed?
The documentation reviewed does not address billing for this code. In general, a refused message is not a delivered message.
Should I mark the channel as disconnected?
Not because of a 131057. Hold the queue for a short interval and resume; marking as disconnected only makes sense when the channel really lost its connection.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.