This FAQ will help you with how search numbers in the DNC list via API.
(Note: First is you need to add Authorization Token, click here to see complete details.
From the Dashboard, click on API and select DNC from the drop-down.
In the DNC API section, make sure that the Search DNC tab is selected.
Insert DNC Section shows the information that you need to set up your API.
The Required Fields are needed for the string. API Url string will work even without the Optional Fields.
Please note that you need to contact the support of your API to enter this information to your API system.
This section will also display an Example PHP Usage and an Example JSON Response.
To verify that searching numbers in the DNC List works via API, click on the Test Request tab.
auth_token = select the generated authentication token.
url = pre-populated with the API Url String.
type = POST.
id = DNC ID.
campaign_id = if the number should be added to the Campaign DNC List, type in the Campaign ID. If the number should be added to the Global DNC List, type 0.
phone_number = type in the phone number to be searched in the DNC List.
phone_code = 1 for USA, 44 for UK, 61 for Australia.
insert date = DNC Insert Date. the format is yyyy-mm-dd hh:mm:ss
offset = Row offset into DNC table (default 0/Max 100000).
limit = Max number of requested rows (default 1000/max 1000).
Here is a sample:
The Request Query String and the Example JSON Response is shown below: