WaMCP
Api referencemessaging

Block Users

Block users from messaging this number.

POST
/api/messaging/block-users

Block users from messaging this number.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/messaging/block-users" \  -H "Content-Type: application/json" \  -d '{    "client_id": "string",    "users": [      "string"    ]  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}