List test personalities
Returns the catalogue of test personalities available to your organization. A personality describes how a simulated caller speaks: prompt, language, accent, voice, interruption level, and call-behaviour settings.
GET
/
ai
/
tests
/
test_framework
/
v1
/
personalities
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.ai.tests.testFramework.v1.retrievePersonalities();
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.ai.tests.test_framework.v1.retrieve_personalities()
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.AI.Tests.TestFramework.V1.GetPersonalities(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;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var response = client.ai().tests().testFramework().v1().retrievePersonalities();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.ai.tests.test_framework.v1.retrieve_personalities
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->ai->tests->testFramework->v1->retrievePersonalities();
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:tests:test-framework:v1 retrieve-personalities \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/ai/tests/test_framework/v1/personalities \
--header 'Authorization: Bearer <token>'[
{
"id": 4643,
"name": "Interruptive (High)",
"prompt": "Speak very impatiently. Comment on trivial things and rarely let others finish speaking.",
"language": "uk",
"accent": "Ukrainian",
"interruption_level": "high",
"end_call_enabled": true
}
]{
"errors": [
{
"code": "10015",
"title": "Bad Request",
"detail": "The AI Tests service rejected the request."
}
]
}{
"errors": [
{
"code": "10003",
"title": "Unauthorized",
"detail": "The API key is missing or invalid."
}
]
}{
"errors": [
{
"code": "10005",
"title": "Not Found",
"detail": "The requested resource or URL could not be found."
}
]
}{
"errors": [
{
"code": "10018",
"title": "Unprocessable Entity",
"detail": "Validation failed for the request payload."
}
]
}{
"errors": [
{
"code": "10029",
"title": "Too Many Requests",
"detail": "Too many requests; retry later."
}
]
}{
"errors": [
{
"code": "10063",
"title": "Service Unavailable",
"detail": "The test framework service is temporarily unavailable."
}
]
}Authorizations
Response
List of test personalities.
Example:
[
{
"id": 4643,
"name": "Interruptive (High)",
"prompt": "Speak very impatiently. Comment on trivial things and rarely let others finish speaking.",
"language": "uk",
"accent": "Ukrainian",
"interruption_level": "high",
"end_call_enabled": true
}
]
Was this page helpful?
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.ai.tests.testFramework.v1.retrievePersonalities();
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.ai.tests.test_framework.v1.retrieve_personalities()
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.AI.Tests.TestFramework.V1.GetPersonalities(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;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var response = client.ai().tests().testFramework().v1().retrievePersonalities();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.ai.tests.test_framework.v1.retrieve_personalities
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->ai->tests->testFramework->v1->retrievePersonalities();
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:tests:test-framework:v1 retrieve-personalities \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/ai/tests/test_framework/v1/personalities \
--header 'Authorization: Bearer <token>'[
{
"id": 4643,
"name": "Interruptive (High)",
"prompt": "Speak very impatiently. Comment on trivial things and rarely let others finish speaking.",
"language": "uk",
"accent": "Ukrainian",
"interruption_level": "high",
"end_call_enabled": true
}
]{
"errors": [
{
"code": "10015",
"title": "Bad Request",
"detail": "The AI Tests service rejected the request."
}
]
}{
"errors": [
{
"code": "10003",
"title": "Unauthorized",
"detail": "The API key is missing or invalid."
}
]
}{
"errors": [
{
"code": "10005",
"title": "Not Found",
"detail": "The requested resource or URL could not be found."
}
]
}{
"errors": [
{
"code": "10018",
"title": "Unprocessable Entity",
"detail": "Validation failed for the request payload."
}
]
}{
"errors": [
{
"code": "10029",
"title": "Too Many Requests",
"detail": "Too many requests; retry later."
}
]
}{
"errors": [
{
"code": "10063",
"title": "Service Unavailable",
"detail": "The test framework service is temporarily unavailable."
}
]
}