OverviewProductsPlatformsAPI ReferenceResources
WhatsApp

Block users

POSThttps://zernio.com/api/v1/whatsapp/block-users

Block one or more WhatsApp users on this number. Blocked users cannot message your number or see that you are online, and your sends to them return an error.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

accountIdstringRequired

WhatsApp account ID

usersarray of stringsRequired

Phone numbers (E.164, e.g. "+16505551234") or WhatsApp user IDs to block.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Meta constraints

These are surfaced per-user in failed; the request itself still succeeds for the rest of the batch.

  • Only users who messaged your business within the last 24 hours can be blocked (failures outside the window report "Re-engagement required").
  • Up to 1,000 users per request; the blocklist caps at 64,000.
  • Other WhatsApp Business accounts cannot be blocked.
POST/v1/whatsapp/block-users
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.blockWhatsAppUsers({  body: {    accountId: 'account_abc123',    users: [      'string',    ],  },});console.log(data);
{  "blocked": [    {      "input": "string",      "waId": "string"    }  ],  "failed": [    {      "input": "string",      "errors": [        "string"      ]    }  ]}
OpenAPI specification
Was this page helpful?