{
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"Phone": "+1234567891",
"FilterMode": "WHITELIST",
"AllowedNumbers": ["+1111111111", "+2222222222"],
"BlockedNumbers": ["+3333333333"],
"EnableTranscription": true,
"KeywordFilter": "{\"CustomKeywords\":[\"inappropriate\",\"banned\"],\"SystemKeywords\":{\"Profanity\":[\"word1\",\"word2\"],\"Violence\":[\"threat1\"]},\"SeverityMap\":{\"Word1\":\"HIGH\",\"Inappropriate\":\"MEDIUM\"}}",
"TranscriptionAction": "WARNING",
"WarningMessage": "This call may be terminated",
"NotificationPhones": ["+9999999999"]
}curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"Phone": "+1234567891",
"FilterMode": "WHITELIST",
"AllowedNumbers": ["+1111111111", "+2222222222"],
"BlockedNumbers": ["+3333333333"],
"EnableTranscription": true,
"TranscriptionAction": "WARNING",
"WarningMessage": "This call may be terminated",
"NotificationPhones": ["+9999999999"]
}'import requests
url = "https://api.telegent.com/v1.0/subscribers/call-filter/update"
payload = {
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "<string>",
"Phone": "<string>",
"AllowedNumbers": ["<string>"],
"BlockedNumbers": ["<string>"],
"EnableTranscription": True,
"KeywordFilter": "<string>",
"WarningMessage": "<string>",
"NotificationPhones": ["<string>"],
"ApplyToOutbound": True,
"ApplyToInbound": True,
"BlockUnknownNumbers": True,
"BlockInternational": True,
"RecordFlaggedCalls": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
FilterId: 'CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499',
SubscriberId: '<string>',
Phone: '<string>',
AllowedNumbers: ['<string>'],
BlockedNumbers: ['<string>'],
EnableTranscription: true,
KeywordFilter: '<string>',
WarningMessage: '<string>',
NotificationPhones: ['<string>'],
ApplyToOutbound: true,
ApplyToInbound: true,
BlockUnknownNumbers: true,
BlockInternational: true,
RecordFlaggedCalls: true
})
};
fetch('https://api.telegent.com/v1.0/subscribers/call-filter/update', 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://api.telegent.com/v1.0/subscribers/call-filter/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'FilterId' => 'CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499',
'SubscriberId' => '<string>',
'Phone' => '<string>',
'AllowedNumbers' => [
'<string>'
],
'BlockedNumbers' => [
'<string>'
],
'EnableTranscription' => true,
'KeywordFilter' => '<string>',
'WarningMessage' => '<string>',
'NotificationPhones' => [
'<string>'
],
'ApplyToOutbound' => true,
'ApplyToInbound' => true,
'BlockUnknownNumbers' => true,
'BlockInternational' => true,
'RecordFlaggedCalls' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telegent.com/v1.0/subscribers/call-filter/update"
payload := strings.NewReader("{\n \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n \"SubscriberId\": \"<string>\",\n \"Phone\": \"<string>\",\n \"AllowedNumbers\": [\n \"<string>\"\n ],\n \"BlockedNumbers\": [\n \"<string>\"\n ],\n \"EnableTranscription\": true,\n \"KeywordFilter\": \"<string>\",\n \"WarningMessage\": \"<string>\",\n \"NotificationPhones\": [\n \"<string>\"\n ],\n \"ApplyToOutbound\": true,\n \"ApplyToInbound\": true,\n \"BlockUnknownNumbers\": true,\n \"BlockInternational\": true,\n \"RecordFlaggedCalls\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telegent.com/v1.0/subscribers/call-filter/update")
.header("Content-Type", "application/json")
.body("{\n \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n \"SubscriberId\": \"<string>\",\n \"Phone\": \"<string>\",\n \"AllowedNumbers\": [\n \"<string>\"\n ],\n \"BlockedNumbers\": [\n \"<string>\"\n ],\n \"EnableTranscription\": true,\n \"KeywordFilter\": \"<string>\",\n \"WarningMessage\": \"<string>\",\n \"NotificationPhones\": [\n \"<string>\"\n ],\n \"ApplyToOutbound\": true,\n \"ApplyToInbound\": true,\n \"BlockUnknownNumbers\": true,\n \"BlockInternational\": true,\n \"RecordFlaggedCalls\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/subscribers/call-filter/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n \"SubscriberId\": \"<string>\",\n \"Phone\": \"<string>\",\n \"AllowedNumbers\": [\n \"<string>\"\n ],\n \"BlockedNumbers\": [\n \"<string>\"\n ],\n \"EnableTranscription\": true,\n \"KeywordFilter\": \"<string>\",\n \"WarningMessage\": \"<string>\",\n \"NotificationPhones\": [\n \"<string>\"\n ],\n \"ApplyToOutbound\": true,\n \"ApplyToInbound\": true,\n \"BlockUnknownNumbers\": true,\n \"BlockInternational\": true,\n \"RecordFlaggedCalls\": true\n}"
response = http.request(request)
puts response.read_body{
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"Phone": "+1234567891",
"FilterMode": "WHITELIST",
"AllowedNumbers": [
"+1111111111",
"+2222222222"
],
"BlockedNumbers": [
"+3333333333"
],
"EnableTranscription": true,
"TranscriptionAction": "WARNING",
"WarningMessage": "This call may be terminated",
"NotificationPhones": [
"+9999999999"
]
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Update Call Filter
Modify an existing call filter without deleting and recreating it.
Prerequisites:
- Bearer token —
POST /v1.0/oauth2/tokens - An existing
CallFilterId(CFID-) — find one withGET /v1.0/subscribers/call-filter
What this does: Replaces the configuration of the specified filter. Use this to change modes (e.g., BLACKLIST → WHITELIST), update allowed/blocked number lists, toggle transcription, change keyword alerts, or adjust restrictions like blocking unknown or international numbers. Note: the Update endpoint only accepts WHITELIST and BLACKLIST modes — age presets must be set on creation.
Next steps:
- Verify the change —
GET /v1.0/subscribers/call-filter - Pause without deleting — use
POST /v1.0/subscribers/call-filter/updatewithEnableTranscriptionoff and an empty rules set, or delete the filter - Permanently remove —
POST /v1.0/subscribers/call-filter/delete
{
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"Phone": "+1234567891",
"FilterMode": "WHITELIST",
"AllowedNumbers": ["+1111111111", "+2222222222"],
"BlockedNumbers": ["+3333333333"],
"EnableTranscription": true,
"KeywordFilter": "{\"CustomKeywords\":[\"inappropriate\",\"banned\"],\"SystemKeywords\":{\"Profanity\":[\"word1\",\"word2\"],\"Violence\":[\"threat1\"]},\"SeverityMap\":{\"Word1\":\"HIGH\",\"Inappropriate\":\"MEDIUM\"}}",
"TranscriptionAction": "WARNING",
"WarningMessage": "This call may be terminated",
"NotificationPhones": ["+9999999999"]
}curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"Phone": "+1234567891",
"FilterMode": "WHITELIST",
"AllowedNumbers": ["+1111111111", "+2222222222"],
"BlockedNumbers": ["+3333333333"],
"EnableTranscription": true,
"TranscriptionAction": "WARNING",
"WarningMessage": "This call may be terminated",
"NotificationPhones": ["+9999999999"]
}'import requests
url = "https://api.telegent.com/v1.0/subscribers/call-filter/update"
payload = {
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "<string>",
"Phone": "<string>",
"AllowedNumbers": ["<string>"],
"BlockedNumbers": ["<string>"],
"EnableTranscription": True,
"KeywordFilter": "<string>",
"WarningMessage": "<string>",
"NotificationPhones": ["<string>"],
"ApplyToOutbound": True,
"ApplyToInbound": True,
"BlockUnknownNumbers": True,
"BlockInternational": True,
"RecordFlaggedCalls": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
FilterId: 'CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499',
SubscriberId: '<string>',
Phone: '<string>',
AllowedNumbers: ['<string>'],
BlockedNumbers: ['<string>'],
EnableTranscription: true,
KeywordFilter: '<string>',
WarningMessage: '<string>',
NotificationPhones: ['<string>'],
ApplyToOutbound: true,
ApplyToInbound: true,
BlockUnknownNumbers: true,
BlockInternational: true,
RecordFlaggedCalls: true
})
};
fetch('https://api.telegent.com/v1.0/subscribers/call-filter/update', 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://api.telegent.com/v1.0/subscribers/call-filter/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'FilterId' => 'CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499',
'SubscriberId' => '<string>',
'Phone' => '<string>',
'AllowedNumbers' => [
'<string>'
],
'BlockedNumbers' => [
'<string>'
],
'EnableTranscription' => true,
'KeywordFilter' => '<string>',
'WarningMessage' => '<string>',
'NotificationPhones' => [
'<string>'
],
'ApplyToOutbound' => true,
'ApplyToInbound' => true,
'BlockUnknownNumbers' => true,
'BlockInternational' => true,
'RecordFlaggedCalls' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telegent.com/v1.0/subscribers/call-filter/update"
payload := strings.NewReader("{\n \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n \"SubscriberId\": \"<string>\",\n \"Phone\": \"<string>\",\n \"AllowedNumbers\": [\n \"<string>\"\n ],\n \"BlockedNumbers\": [\n \"<string>\"\n ],\n \"EnableTranscription\": true,\n \"KeywordFilter\": \"<string>\",\n \"WarningMessage\": \"<string>\",\n \"NotificationPhones\": [\n \"<string>\"\n ],\n \"ApplyToOutbound\": true,\n \"ApplyToInbound\": true,\n \"BlockUnknownNumbers\": true,\n \"BlockInternational\": true,\n \"RecordFlaggedCalls\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telegent.com/v1.0/subscribers/call-filter/update")
.header("Content-Type", "application/json")
.body("{\n \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n \"SubscriberId\": \"<string>\",\n \"Phone\": \"<string>\",\n \"AllowedNumbers\": [\n \"<string>\"\n ],\n \"BlockedNumbers\": [\n \"<string>\"\n ],\n \"EnableTranscription\": true,\n \"KeywordFilter\": \"<string>\",\n \"WarningMessage\": \"<string>\",\n \"NotificationPhones\": [\n \"<string>\"\n ],\n \"ApplyToOutbound\": true,\n \"ApplyToInbound\": true,\n \"BlockUnknownNumbers\": true,\n \"BlockInternational\": true,\n \"RecordFlaggedCalls\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/subscribers/call-filter/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n \"SubscriberId\": \"<string>\",\n \"Phone\": \"<string>\",\n \"AllowedNumbers\": [\n \"<string>\"\n ],\n \"BlockedNumbers\": [\n \"<string>\"\n ],\n \"EnableTranscription\": true,\n \"KeywordFilter\": \"<string>\",\n \"WarningMessage\": \"<string>\",\n \"NotificationPhones\": [\n \"<string>\"\n ],\n \"ApplyToOutbound\": true,\n \"ApplyToInbound\": true,\n \"BlockUnknownNumbers\": true,\n \"BlockInternational\": true,\n \"RecordFlaggedCalls\": true\n}"
response = http.request(request)
puts response.read_body{
"FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
"SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"Phone": "+1234567891",
"FilterMode": "WHITELIST",
"AllowedNumbers": [
"+1111111111",
"+2222222222"
],
"BlockedNumbers": [
"+3333333333"
],
"EnableTranscription": true,
"TranscriptionAction": "WARNING",
"WarningMessage": "This call may be terminated",
"NotificationPhones": [
"+9999999999"
]
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Body
Stringified JSON defining keyword rules. Structure: {"CustomKeywords":[...],"SystemKeywords":{"Profanity":[...],"Violence":[...]},"SeverityMap":{"keyword":"HIGH|MEDIUM|LOW"}}. CustomKeywords are user-added words; SystemKeywords are platform-provided categories; SeverityMap assigns a risk level to each term.
What happens when a flagged keyword is detected during live transcription. WARNING: play WarningMessage to the caller but allow the call to continue. TERMINATE: end the call immediately. NOTIFY: alert NotificationPhones without interrupting the call.
WARNING, TERMINATE, NOTIFY Response
Call Filter Updated
The response is of type object.