Skip to main content

Block

POST 

/block

This endpoint allows you to block a number.

The user cannot contact your WhatsApp number at all (they will see 1 grey check mark), and you can't message that user either: if you try to send, you will get an error. You can only block users that have messaged you in the last 24 hours, and the maximum is 64,000 numbers in your block list. See Black List (Block) for how it works and when to use it.

Settings​

SettingValue
URLhttps://api.99digital.co.il/whatsapp/v2/block
MethodJSON via POST
KeyValue
apiKeyYour API key for the service

Body​

ParameterDescription / ExampleMandatory
fromYour WhatsApp account. International number without +. For example: 972771234567yes
whatsappThe number you want to block, in international format, digits only. For example: 972501234567yes

Response​

{
"status": "OK",
"from": "972771234567",
"whatsapp": "972501234567",
"reason": 1
}

Response-Explain​

ParameterDescription
statusOK or FAIL
fromYour WhatsApp account
whatsappThe number that you blocked
reasonThe status explanation — see the table below.
reasonDescription
1Not FAIL. The status is OK.
2from is missing, or JSON syntax error
3Wrong apiKey, or the "from" number is not registered with us
4whatsapp is either empty or wrong number format
6Error blocking the number, please try again
7You are trying to block a number, but it has been more than 24 hours since the user sent you a message. You need to wait for their next message.
8The 64,000 block limit has been reached

Request​

Responses​

The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.