Flags Removed Summary
curl --request GET \
--url https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary \
--header 'loginId: <loginid>'import requests
url = "https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary"
headers = {"loginId": "<loginid>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {loginId: '<loginid>'}};
fetch('https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"loginId: <loginid>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("loginId", "<loginid>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary")
.header("loginId", "<loginid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["loginId"] = '<loginid>'
response = http.request(request)
puts response.read_body{
"Att": 5,
"Tmobile": 12,
"Verizon": 8,
"RogersBell": 0,
"Total": 25
}
Call Deliverability (TrustCall)
Flags Removed Summary
Retrieve a summary of spam flags removed across carriers within a specified time period
GET
/
v1.5
/
TrustCall
/
FlagsRemovedSummary
Flags Removed Summary
curl --request GET \
--url https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary \
--header 'loginId: <loginid>'import requests
url = "https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary"
headers = {"loginId": "<loginid>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {loginId: '<loginid>'}};
fetch('https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"loginId: <loginid>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("loginId", "<loginid>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary")
.header("loginId", "<loginid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["loginId"] = '<loginid>'
response = http.request(request)
puts response.read_body{
"Att": 5,
"Tmobile": 12,
"Verizon": 8,
"RogersBell": 0,
"Total": 25
}
Retrieve a summary of spam flags that have been removed across carriers within a specified time period. This endpoint provides counts of flags removed for AT&T, Rogers/Bell, T-Mobile, Verizon, and Total flags removed.
Request
Headers
string
required
Your API Key (LoginId from your DNCScrub account)
Query Parameters
integer
default:"7"
Number of days to look back. Minimum is 1, maximum is 90. Defaults to 7.
Example Request
curl --location --request GET \
'https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary?days=30' \
--header 'loginId: YOUR_API_KEY'
const response = await fetch(
'https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary?days=30',
{
method: 'GET',
headers: { 'loginId': 'YOUR_API_KEY' }
}
);
const data = await response.json();
console.log(data);
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Add("loginId", "YOUR_API_KEY");
var response = await client.GetAsync(
"https://dataapi.dncscrub.com/v1.5/TrustCall/FlagsRemovedSummary?days=30"
);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
{
"Att": 5,
"Tmobile": 12,
"Verizon": 8,
"RogersBell": 0,
"Total": 25
}
Response Fields
integer
Number of AT&T flags removed in the specified period. For Canadian accounts, this will be
0.integer
Number of T-Mobile flags removed in the specified period
integer
Number of Verizon flags removed in the specified period
integer
Number of Rogers/Bell flags removed in the specified period. For US accounts, this will be
0.integer
Total number of flags removed across all supported carriers in the specified period
Error Responses
| Status | Description |
|---|---|
| 400 Bad Request | Invalid days parameter (must be between 1 and 90) |
| 401 Unauthorized | Invalid or missing API key |