curl -X GET 'https://api.telegent.com/v1.0/subscribers/call-filter/keywords?SubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&CallFilterId=CFID-4bb4817b-7399-4949-97e9-ecad885a190f' \
-H 'Authorization: Bearer YOUR_TOKEN'import requests
url = "https://api.telegent.com/v1.0/subscribers/call-filter/keywords"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.telegent.com/v1.0/subscribers/call-filter/keywords', 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/keywords",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.telegent.com/v1.0/subscribers/call-filter/keywords"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.telegent.com/v1.0/subscribers/call-filter/keywords")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/subscribers/call-filter/keywords")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"CustomKeywords": [
"inappropriate",
"banned"
],
"SystemKeywords": {
"Profanity": [
"word1",
"word2"
],
"Violence": [
"threat1"
]
},
"SeverityMap": {
"Word1": "HIGH",
"Inappropriate": "MEDIUM"
}
}{
"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>"
}Get Call Filter Keywords
View the keyword monitoring rules attached to a call filter.
Prerequisites:
- Bearer token —
POST /v1.0/oauth2/tokens - Subscriber ID and
CallFilterId(CFID-) - Call transcription must be enabled on the filter for keywords to take effect at runtime — set
EnableTranscriptiontotrueviaPOST /v1.0/subscribers/call-filter/update
What this does: Returns the keyword filter configuration: CustomKeywords (your own words), SystemKeywords (Telegent-provided categories like Profanity, Threats), and SeverityMap (risk level per term: HIGH/MEDIUM/LOW). When transcription is on, calls are analyzed against these keywords and the configured TranscriptionAction is taken when a match is found.
Next steps:
- Add or change keywords —
POST /v1.0/subscribers/call-filter/update(use theKeywordFilterfield) - See the rest of the filter —
GET /v1.0/subscribers/call-filter
curl -X GET 'https://api.telegent.com/v1.0/subscribers/call-filter/keywords?SubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&CallFilterId=CFID-4bb4817b-7399-4949-97e9-ecad885a190f' \
-H 'Authorization: Bearer YOUR_TOKEN'import requests
url = "https://api.telegent.com/v1.0/subscribers/call-filter/keywords"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.telegent.com/v1.0/subscribers/call-filter/keywords', 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/keywords",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.telegent.com/v1.0/subscribers/call-filter/keywords"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.telegent.com/v1.0/subscribers/call-filter/keywords")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/subscribers/call-filter/keywords")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"CustomKeywords": [
"inappropriate",
"banned"
],
"SystemKeywords": {
"Profanity": [
"word1",
"word2"
],
"Violence": [
"threat1"
]
},
"SeverityMap": {
"Word1": "HIGH",
"Inappropriate": "MEDIUM"
}
}{
"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>"
}Query Parameters
Telegent Subscriber ID. Format: TSUID- followed by a UUID. Create one via POST /v1.0/subscribers/create or look up existing IDs with GET /v1.0/subscribers/get.
Call Filter ID. Format: CFID- followed by a UUID. Returned by POST /v1.0/subscribers/call-filter (Create) or GET /v1.0/subscribers/call-filter (List).
AccountId string
Response
Keywords Retrieved
The response is of type object.