logoSellhub
Blacklists
background
Sellhub Docs
Sellhub Docs
Create Blacklist Entry
POST
/store/blacklists

Authorization

Authorization<token>

In: header

Request Body

application/jsonRequired

Request body for creating a blacklist entry

valueRequiredstring

Value to blacklist (email or IP address)

reasonRequiredstring

Reason for blacklisting

blacklistTypeRequiredstring

Type of blacklist entry

Value in: "ip" | "email"
curl -X POST "https://dash.sellhub.cx/api/sellhub/store/blacklists" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "value": "john@gmail.com",
    "reason": "spamming",
    "blacklistType": "email"
  }'

Blacklist entry created

{
  "success": true,
  "blacklistId": "blacklist_123"
}