Remove from Blacklist POST
Removes a mobile number from your account's blacklist. The number can receive SMS from this account again, starting with the next send.
Authorization
API Key (Authentication) — send the header Authorization: Bearer <API_KEY> (API keys start with smsk_)
HTTP Request
http
POST https://public-api.smsup-plus.com/Blacklist/deleteBlacklistContent Type
application/json
Parameter Description
| Property | Type | Required | Description |
|---|---|---|---|
mobile | string | Required | Number to remove, in any format accepted by Insert (0812345678, +66812345678, 66812345678) — every stored form of that number is removed |
Response Description
| Property | Type | Description |
|---|---|---|
status | number | 200 on success |
description | string | Removed from blacklist. |
Request Example
bash
curl -X POST 'https://public-api.smsup-plus.com/Blacklist/deleteBlacklist' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"mobile": "66812345678"
}'js
const res = await fetch('https://public-api.smsup-plus.com/Blacklist/deleteBlacklist', {
method: 'POST',
headers: { Authorization: 'Bearer <API_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({ mobile: '66812345678' }),
})
console.log(await res.json())Response Example
json
{
"status": 200,
"description": "Removed from blacklist."
}Possible Errors
| HTTP | Response | Cause |
|---|---|---|
| 200 | {"status":400,"description":"mobile is required."} | mobile missing or empty, or body is not JSON |
| 200 | {"status":500,"description":"Failed to remove from blacklist."} | Remove failed — retry |
| 401 | {"error":"invalid api key"} | Invalid API key — see Errors |
WARNING
Once authenticated, this endpoint always answers HTTP 200. Check the status field in the body.
Effect on sending SMS
A blacklisted number gets status {"code":"403","name":"REJECTED","description":"Number is blacklisted"} from Send SMS and is not sent. After it is removed from the blacklist, the next send to that number works normally (messages rejected earlier are not re-sent).
TIP
The response is Removed from blacklist. even if the number was not in the blacklist. To confirm, check the list again.
