v1

latestOpenAPI 3.0.02026-07-24143141.7 KB

Block User

API to block user

Notes:

  • You can only block users that have messaged your business in the last 24 hours.
  • 64k blocklist limit
post/wa/app/{appId}/user/block

Path parameters

appIdstring required

appId of the app

Headers

apikeystring required

Apikey of app

Request body

messaging_product'whatsapp' required

Must be "whatsapp"

Example request

{
  "block_users": [
    {
      "user": "919163805873"
    }
  ]
}

Response

Successful operation

messaging_productstring
statusstring

Example response

{
  "block_users": {
    "added_users": [
      {
        "input": "919163805873",
        "wa_id": "919163400873"
      }
    ]
  },
  "messaging_product": "whatsapp",
  "status": "success"
}