Skip to main content
POST
/
dnc
Add DNC entry
curl --request POST \
  --url https://api-message.nativehub.live/api/v1/dnc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "+8801812345678",
  "reason": "User opt-out request"
}
'
{
  "id": "b4c5d6e7-f8a9-0123-bc45-678901234567",
  "tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
  "phone_number": "+8801812345678",
  "reason": "User opt-out request",
  "created_at": "2026-02-10T11:20:00Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
phone
string
required
reason
string

Response

DNC entry added successfully

id
string<uuid>
tenant_id
string<uuid>
phone_number
string
reason
string
created_at
string<date-time>