Blacklist

The requests in this section allow you to add and remove numbers from your account's phone number blacklist.

List prefixes

Lists all entries in account whitelist/blacklist.

Request

GET https://api.telzio.com/blacklist

Query Parameters

Parameter Type Description
prefix string Filter by blacklist prefix
direction string Filter by direction

Response

{
  "Success": true,
  "Data": [
    {
        "Direction": "inbound",
        "CountryIso": "RU",
        "Prefix": "7055",
        "Action": "blacklist"
    }
  ],
  "ItemsReturned": 10,
  "ItemsAvailable": 150
}

Add a prefix

Adds an entry to account's whitelist/blacklist.

Request

POST https://api.telzio.com/blacklist

Body Parameters

{
  "CountryIso": "UA",
  "Prefix": "380",
  "Direction": "inbound",
  "Action": "whitelist" 
}

Response

200 OK

Remove a prefix

Removes a specific prefix from the list.

Request

DELETE https://api.telzio.com/blacklist

Body Parameters

{
  "CountryIso": "UA",
  "Prefix": "380"
}

Response

200 OK