Skip to main content
POST
/
dnc
/
bulk
Bulk add DNC entries
curl --request POST \
  --url https://api-message.nativehub.live/api/v1/dnc/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "numbers": [
    "+8801812345678",
    "+8801812345679",
    "+8801812345680"
  ],
  "reason": "Bulk opt-out"
}
'
{
  "added": 3,
  "skipped": 0
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
numbers
string[]
required
reason
string

Response

200 - application/json

DNC entries added successfully

added
integer
skipped
integer