{
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Guardian"
}curl -X POST https://api.telegent.com/v1.0/subscribers/guardians/relation \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Guardian"
}'import requests
url = "https://api.telegent.com/v1.0/subscribers/guardians/relation"
payload = {
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Guardian"
}
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({
ParentSubscriberId: 'TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441',
ChildSubscriberId: 'TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC',
Relation: 'Guardian'
})
};
fetch('https://api.telegent.com/v1.0/subscribers/guardians/relation', 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/guardians/relation",
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([
'ParentSubscriberId' => 'TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441',
'ChildSubscriberId' => 'TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC',
'Relation' => 'Guardian'
]),
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/guardians/relation"
payload := strings.NewReader("{\n \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n \"Relation\": \"Guardian\"\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/guardians/relation")
.header("Content-Type", "application/json")
.body("{\n \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n \"Relation\": \"Guardian\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/subscribers/guardians/relation")
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 \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n \"Relation\": \"Guardian\"\n}"
response = http.request(request)
puts response.read_body{
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Parent"
}{
"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>"
}Create Guardian Relation
Link a parent (guardian) subscriber to a child subscriber so the parent can supervise the child’s communications.
Prerequisites:
- Bearer token —
POST /v1.0/oauth2/tokens - Both subscribers must exist (
TSUID-) —POST /v1.0/subscribers/create - AI Guardian must be enabled on both subscribers —
POST /v1.0/subscribers/guardian-features
What this does: Creates a one-way parent-to-child link. The parent gains the ability to receive filter notifications, manage filters on behalf of the child, and use age-preset modes (CHILD, TEENAGER, ADOLESCENT) on the child’s call filters.
Next steps:
- Verify the link —
GET /v1.0/subscribers/guardians/relation/parent(lookup by parent) orGET /v1.0/subscribers/guardians/relation/child(lookup by child) - Create message and call filters on the child —
POST /v1.0/subscribers/message-filter,POST /v1.0/subscribers/call-filter - Remove the link later —
POST /v1.0/subscribers/guardians/relation/delete
{
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Guardian"
}curl -X POST https://api.telegent.com/v1.0/subscribers/guardians/relation \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Guardian"
}'import requests
url = "https://api.telegent.com/v1.0/subscribers/guardians/relation"
payload = {
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Guardian"
}
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({
ParentSubscriberId: 'TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441',
ChildSubscriberId: 'TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC',
Relation: 'Guardian'
})
};
fetch('https://api.telegent.com/v1.0/subscribers/guardians/relation', 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/guardians/relation",
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([
'ParentSubscriberId' => 'TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441',
'ChildSubscriberId' => 'TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC',
'Relation' => 'Guardian'
]),
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/guardians/relation"
payload := strings.NewReader("{\n \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n \"Relation\": \"Guardian\"\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/guardians/relation")
.header("Content-Type", "application/json")
.body("{\n \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n \"Relation\": \"Guardian\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/subscribers/guardians/relation")
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 \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n \"Relation\": \"Guardian\"\n}"
response = http.request(request)
puts response.read_body{
"ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
"ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
"Relation": "Parent"
}{
"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
Subscriber ID of the parent (guardian). Format: TSUID- followed by a UUID. Both parent and child must already exist as subscribers and have AI Guardian enabled.
"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
Subscriber ID of the child (the subscriber being supervised). Format: TSUID- followed by a UUID.
"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC"
Label describing the relationship (e.g., Parent, Guardian, Caregiver). Free-form string used for display and reporting.
"Guardian"
Response
Guardian Relation Created
The response is of type object.