← Blog

·

How to block and unblock users with the WhatsApp Business API (Block Users API)

Updated on October 29, 2026

To block a user with the WhatsApp Business API, send a POST to /<PHONE_NUMBER_ID>/block_users with the list of phone numbers in block_users. To unblock, call the same endpoint with DELETE, and to list blocked users, use GET. The main restriction: you can only block people who messaged the business in the last 24 hours.

This guide covers the three payloads, the limits, the errors the API returns and when it makes sense to block someone in an automated support flow.

What happens when you block a user

According to the Block Users API documentation, blocking has two effects:

  • The user can no longer contact the business or see when it is online.
  • The business can no longer send messages to them. Attempts to message a blocked user return an error.

Blocking is per business phone number: it applies to the PHONE_NUMBER_ID used in the call. If the business has several numbers, each one has its own list.

The API is synchronous: the response already tells you who was blocked and who wasn’t. Errors are reported per number, because in a single call some blocks may succeed while others fail.

Limits and requirements

RuleValue
Who can be blockedOnly users who messaged the business in the last 24 hours
Users per requestUp to 1,000
Maximum block list size64,000 users
TokenSystem user token or business integration token
Additional restrictionThe documentation states you cannot block another WhatsApp account

The 24-hour rule is the one that trips people up most. It makes the Block Users API a reactive tool: you block someone who just sent spam or abuse, not a list imported from a spreadsheet. If the person wrote three days ago, the API refuses.

Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →

Block users

curl -X POST "https://graph.facebook.com/v26.0/<PHONE_NUMBER_ID>/block_users" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "block_users": [
      { "user": "+5511999999999" },
      { "user": "+5521988888888" }
    ]
  }'

The user field is the user’s phone number, the same value the API returns as input when you send a message. Success response:

{
  "messaging_product": "whatsapp",
  "block_users": {
    "added_users": [
      { "input": "+5511999999999", "wa_id": "5511999999999" },
      { "input": "+5521988888888", "wa_id": "5521988888888" }
    ]
  }
}

When some numbers fail, they show up in failed_users, each with its own error, and the top-level error object carries code 139100:

{
  "messaging_product": "whatsapp",
  "block_users": {
    "added_users": [
      { "input": "+5511999999999", "wa_id": "5511999999999" }
    ],
    "failed_users": [
      {
        "input": "+5521988888888",
        "wa_id": "5521988888888",
        "errors": [
          {
            "message": "Re-engagement required",
            "code": 131047,
            "error_data": { "details": "User has not messaged in the last 24 hours" }
          }
        ]
      }
    ]
  },
  "error": {
    "message": "(#139100) Failed to block/unblock users",
    "type": "OAuthException",
    "code": 139100
  }
}

Always handle both arrays. Code that only checks the HTTP status or only the top-level error has no way of knowing who was actually blocked.

Phone number vs. wa_id

Meta warns that the phone number (input) and the user ID (wa_id) don’t always match. Store both in your system. For invalid numbers, wa_id does not appear in failed_users.

Unblock users

Unblocking uses the same endpoint and the same body format, with the DELETE method:

curl -X DELETE "https://graph.facebook.com/v26.0/<PHONE_NUMBER_ID>/block_users" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "block_users": [
      { "user": "+5511999999999" }
    ]
  }'

The response returns removed_users instead of added_users, with the same input and wa_id fields, plus any failed_users. The limitations section of the documentation only mentions the 24-hour window for blocking, but the unblock failure example shows the same 131047 error. In practice, expect that unblocking may also be refused if the user hasn’t written recently.

After unblocking, the normal rule applies again: to start a conversation outside the 24-hour window, you need an approved template.

List blocked users

curl "https://graph.facebook.com/v26.0/<PHONE_NUMBER_ID>/block_users?limit=100" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
{
  "data": [
    { "messaging_product": "whatsapp", "wa_id": "5511999999999" },
    { "messaging_product": "whatsapp", "wa_id": "5521988888888" }
  ],
  "paging": {
    "cursors": {
      "after": "<AFTER_CURSOR>",
      "before": "<BEFORE_CURSOR>"
    }
  }
}

Pagination is cursor-based: pass after to move forward and before to go back. If the list changes while you are paginating, the API may return error 139102, and the right move is to restart the listing from the beginning. The listing only returns the wa_id; the originally entered number lives in your database.

Block Users API errors

CodeMeaningWhat to do
139100The bulk block or unblock failed for some or all usersRead failed_users and handle each number
139101The block list reached the 64,000 limitUnblock older users before blocking new ones
139102The list changed during paginationRestart the listing from the beginning
139103Internal errorRetry after a few seconds
130429Rate limit: too many numbers in the request or too many requests in a short timeReduce the batch size and space out calls
131021Attempt to block the business’s own numberRemove that number from the list
131047Re-engagement required: the user hasn’t written in the last 24 hours or is not a valid WhatsApp userBlocking isn’t possible right now; log it and handle it in your system

Error 131047 also shows up when sending outside the customer service window. We explain it in detail in error 131047, and the full list is in WhatsApp API error codes.

When to block (and when not to)

Blocking through the API makes sense when the conversation has already gone wrong:

  • Spam and automated messages hitting your number in volume, flooding the support queue or burning AI calls.
  • Abuse: insults, harassment of agents, illegal content.
  • Scam attempts, such as someone posing as a supplier to request a payment.
  • Improper testing of your bot, such as message sequences designed to extract the prompt or run up costs.

And there are cases where blocking is the wrong tool:

  • A customer who asked to stop receiving messages. That’s an opt-out, not abuse. Mark the contact as unsubscribed in your system and stop sending. Blocking would prevent the person from reaching you again whenever they want. See how to handle this in opt-in list and LGPD and WhatsApp.
  • A customer who is upset with the service. An angry customer is not an abuser. Route them to a person; the article on handing off from bot to human shows how.
  • Cleaning up old contacts. The 24-hour rule already prevents it, and there’s no reason to: just don’t send.

A carefully designed automated blocking flow

If your bot detects abuse, the safest design is:

  1. The webhook receives the message and your system flags the contact as suspicious (by volume, keywords or pattern).
  2. A team member reviews the case, or a very objective rule decides (for example, dozens of identical messages within a few minutes).
  3. The system calls block_users while still inside the 24 hours and stores input, wa_id, date, reason and who made the decision.
  4. Support gets a way to unblock in case it was a mistake.

Storing the reason helps with audits and review requests. Blocking a real customer by mistake is costly, because they can no longer reach the business on that number.

How to do it with Vectalk

Vectalk is a proxy for the official WhatsApp API and exposes the three blocking endpoints with a simpler body. With an instance token, the number is resolved from the token, so you don’t need to pass the phone_number_id:

# Block
curl -X POST https://apis.vectalk.com.br/api/block-users \
  -H "Authorization: Bearer YOUR_INSTANCE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"users": ["5511999999999", "5521988888888"]}'

# Unblock
curl -X DELETE https://apis.vectalk.com.br/api/block-users \
  -H "Authorization: Bearer YOUR_INSTANCE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"users": ["5511999999999"]}'

# List
curl https://apis.vectalk.com.br/api/block-users \
  -H "Authorization: Bearer YOUR_INSTANCE_TOKEN"

Responses follow Meta’s format (added_users, removed_users, data and paging), and the 24-hour rule and limits are the same, since the call is forwarded to the Cloud API. Details are in Block users, Unblock and List blocked users. Create your account at apps.vectalk.com.br/register.

Frequently asked questions

Does the user find out they were blocked?

Meta’s documentation says a blocked user cannot contact the business or see that it is online. It does not describe any notice being sent to the user.

Can I block someone who has never messaged the business?

No. You can only block people who messaged in the last 24 hours. For someone who never wrote, simply don’t send them messages.

Does blocking through the API affect phone number quality?

The Block Users API documentation does not link blocks made by the business to the quality rating. What weighs on quality are blocks and reports made by users against the business, covered in phone number quality rating.

Does a block apply to all of the business’s numbers?

No. The block list belongs to the business phone number used in the call (PHONE_NUMBER_ID). If the same user is bothering two numbers, block them on each one.

Does blocking replace an unsubscribe (opt-out)?

No. An opt-out is a legitimate customer request and must be honored in your system without preventing them from talking to you again. Blocking is for abuse. For legal questions about personal data, refer to the LGPD (Law 13.709/2018, Brazil’s General Data Protection Law) and a lawyer; this article is not legal advice.


Official sources consulted on October 29, 2026: Block users (Meta), Block Users API reference (Meta), Error codes (Meta), Vectalk: block users, Vectalk: unblock users, Vectalk: list blocked users.

Put your business on the official WhatsApp

Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.