Agree to the Branded Calling Terms of Service
Records the authenticated user’s agreement to the current Branded Calling ToS. No body required. Idempotent - re-calling after agreement is a no-op and returns the existing agreement.
This is a prerequisite for activating Branded Calling on any enterprise (POST /enterprises/{id}/branded_calling); without an agreement, activation returns 403.
POST
/
terms_of_service
/
branded_calling
/
agree
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.termsOfService.brandedCalling.agree();
console.log(response.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
response = client.terms_of_service.branded_calling.agree()
print(response.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.TermsOfService.BrandedCalling.Agree(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.termsofservice.brandedcalling.BrandedCallingAgreeParams;
import com.telnyx.sdk.models.termsofservice.brandedcalling.BrandedCallingAgreeResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
BrandedCallingAgreeResponse response = client.termsOfService().brandedCalling().agree();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.terms_of_service.branded_calling.agree
puts(response)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$response = $client->termsOfService->brandedCalling->agree();
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx terms-of-service:branded-calling agree \
--api-key 'My API Key'curl --request POST \
--url https://api.telnyx.com/v2/terms_of_service/branded_calling/agree \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"terms_version": "v1.0.0",
"version": "v1.0.0",
"product_type": "branded_calling",
"agreed_at": "2025-07-10T10:30:00Z",
"created_at": "2025-07-10T10:30:00Z"
}
}Authorizations
Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
Response
Agreement recorded.
A recorded user agreement to a product's Terms of Service. The user_id is intentionally NOT echoed back on this public surface - the caller already knows their own identity.
Show child attributes
Show child attributes
Was this page helpful?
⌘I
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.termsOfService.brandedCalling.agree();
console.log(response.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
response = client.terms_of_service.branded_calling.agree()
print(response.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.TermsOfService.BrandedCalling.Agree(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.termsofservice.brandedcalling.BrandedCallingAgreeParams;
import com.telnyx.sdk.models.termsofservice.brandedcalling.BrandedCallingAgreeResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
BrandedCallingAgreeResponse response = client.termsOfService().brandedCalling().agree();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.terms_of_service.branded_calling.agree
puts(response)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$response = $client->termsOfService->brandedCalling->agree();
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx terms-of-service:branded-calling agree \
--api-key 'My API Key'curl --request POST \
--url https://api.telnyx.com/v2/terms_of_service/branded_calling/agree \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"terms_version": "v1.0.0",
"version": "v1.0.0",
"product_type": "branded_calling",
"agreed_at": "2025-07-10T10:30:00Z",
"created_at": "2025-07-10T10:30:00Z"
}
}