Skip to content
Whats91

Update the reason or status for one sender-scoped blacklist entry.

Update Entry

Summary

Update the reason or status for one sender-scoped blacklist entry.

Prerequisites

  • Authorization: Bearer w91_live_xxx
  • Content-Type: application/json for JSON requests

Endpoint: POST /api/v2/message-blacklist/{blacklistUid}. Only reason and status are editable through public v2. Supported status values are ACTIVE and INACTIVE.

POST/api/v2/message-blacklist/{blacklistUid}
ParameterTypeRequiredDescription
AuthorizationheaderRequiredBearer w91_public_token_here.
Content-TypeheaderRequiredContent-Type: application/json.
blacklistUidstringRequiredPublic blacklist entry UID, for example bl_abc.
senderIdstringOptionalWhatsApp registered sender number.
reasonstringOptionalReplacement opt-out reason.
statusstringOptionalACTIVE or INACTIVE.
Update entry
curl -X POST "https://graph.whats91.com/api/v2/message-blacklist/bl_abc" \
  -H "Authorization: Bearer w91_public_token_here" \
  -H "Content-Type: application/json" \
  -d '{
    "senderId": "916268662275",
    "reason": "Updated opt-out reason",
    "status": "INACTIVE"
  }'
Update response
{
  "success": true,
  "message": "Blacklist entry updated",
  "data": {
    "blacklistEntry": {
      "blacklistUid": "bl_abc",
      "reason": "Updated opt-out reason",
      "status": "INACTIVE",
      "deactivatedAt": "2026-06-06T09:10:00.000Z"
    }
  },
  "metadata": {
    "apiVersion": "v2",
    "requestId": "request-uuid"
  }
}

Note

Send at least one editable field. Empty update payloads return VALIDATION_FAILED.

SDK Examples

Use these examples as starting points for server-side implementations.

cURL
curl -X POST "https://graph.whats91.com/api/v2/message-blacklist/{blacklistUid}" \
  -H "Authorization: Bearer w91_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
  "senderId": "916268662275",
  "reason": "Updated opt-out reason",
  "status": "INACTIVE"
}'
Node.js
const response = await fetch("https://graph.whats91.com/api/v2/message-blacklist/{blacklistUid}", {
  method: "POST",
  headers: {
    "Authorization": "Bearer w91_live_xxx",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "senderId": "916268662275",
    "reason": "Updated opt-out reason",
    "status": "INACTIVE"
  })
});

const data = await response.json();
console.log(data);
PHP
$ch = curl_init("https://graph.whats91.com/api/v2/message-blacklist/{blacklistUid}");
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer w91_live_xxx",
    "Content-Type: application/json"
  ],
  CURLOPT_POSTFIELDS => json_encode([
    "senderId" => "916268662275",
    "reason" => "Updated opt-out reason",
    "status" => "INACTIVE"
  ])
]);

$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests

response = requests.request(
    "POST",
    "https://graph.whats91.com/api/v2/message-blacklist/{blacklistUid}",
    headers={
        "Authorization": "Bearer w91_live_xxx",
        "Content-Type": "application/json",
    },
    json={
        "senderId": "916268662275",
        "reason": "Updated opt-out reason",
        "status": "INACTIVE"
    }
)

print(response.json())
C#
using System.Text;

using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer w91_live_xxx");

var request = new HttpRequestMessage(HttpMethod.Post, "https://graph.whats91.com/api/v2/message-blacklist/{blacklistUid}");
request.Content = new StringContent(
  """
  {
    "senderId": "916268662275",
    "reason": "Updated opt-out reason",
    "status": "INACTIVE"
  }
  """,
  Encoding.UTF8,
  "application/json"
);

var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());

Related APIs