Search
Close this search box.

< / >

APIs Campaign

1. Enter a DNC En

URL:

https://wv{{wolkvox_server}}.wolkvox.com/api/v2/campaign.php?api=add_dnc

Description:

Esta API permite ingresar uno o multiples numeros DNC (Do Not Call) inbound o outbond a la base de datos.

Benefit:

Manage, without the need to reupload the database, the information of customers, collaborators and suppliers of your database to determine massively the records that will be blocked.

how it works:

  • Consuming this API is done by POST method.
  • The json adds the parameters according to the operation or process to be performed.
  • To consume this API you must replace in the url {{wolkvox_server}} by the nomenclature of the server of the operation.
  • The wolkvoxtoken header must be used to use the authorization token.
  • Keep in mind that the same token cannot be consumed simultaneously, so you can program the next API to be consumed when the result of the previous one is successful.
  • Limit of records that can be downloaded per consumption: 60,000 records.
  • Limit of records that can be uploaded per consumption: 10,000 records.
  • Limit of days queried in dates: 31 days.
  • Limit of result weight: 256 MB.
  • API consumption time limit: 60 seconds.
  • Concurrent consumption limit of a token: 2 simultaneous requests.
  • Daily limit of tokens: Number of licenses multiplied by 1000 daily tokens.

Request

NAME DESCRIPTION TYPE
telephone Phone to add String
days_block Days the number will be blocked String

Response

NAME DESCRIPTION TYPE
total_added Total additions String
total_rejected Total rejected String
total_sent Total number of telephones sent String
Possible response codes
				
					$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/campaign.php?api=add_dnc',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'[
    {
        "telephone": "{{telephone}}",
        "days_block": "{{days_block}}"
    },
    {
        "telephone": "{{telephone}}",
        "days_block": "{{days_block}}"
    }
]',
  CURLOPT_HTTPHEADER => array(
    'wolkvox_server: {{wolkvox_server}}',
    'wolkvox-token: {{wolkvox-token}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

				
			

RESPONSE

				
					{
    "code": 201,
    "error": null,
    "msg": "1 telephones were added",
    "data": [
        {
            "total_added": "",
            "total_rejected": "",
            "total_sent": ""
        }
    ]
}
				
			
We use cookies, if you continue browsing we will assume that you agree. You can read more about the use of cookies in our privacy policies and treatment of personal data