Skip to main content
POST
Blocks or unblocks a WhatsApp contact

Authorizations

token
string
header
required

Body

application/json
number
string
required

WhatsApp number in international format (e.g. 5511999999999)

Example:

"5511999999999"

block
boolean
required

True to block, False to unblock

Example:

true

Response

Operation performed successfully

response
string

Confirmation message

Example:

"Blocked successfully"

blockList
string[]

Updated list of blocked contacts

Example: