Telnyx AI Tests API

Test agents, evaluator scenarios, metrics, and run results for the AI test framework.

GitHub OpenAPI

Operations 34

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /ai/tests/schedules/v1/cron-jobs List scheduled AI test jobs · List scheduled test jobs #
Ask an LLM
“Which AI test jobs are scheduled to run on my AI assistant?”
“Can I see only the scheduled test jobs for one test agent?”
Tell an agent
List my scheduled AI test jobs.
Show scheduled test jobs for test agent {agent_id}.
POST /ai/tests/schedules/v1/cron-jobs Schedule AI test scenarios · Create a scheduled test job #
Ask an LLM
“How do I run my AI assistant's scenarios on a cron schedule?”
“Can I choose which scenarios a scheduled test job runs?”
Tell an agent
Schedule AI test scenarios {scenarios} to run at {crontab_expression}.
Create a scheduled test job named {name} running {scenarios} on {crontab_expression}.
DELETE /ai/tests/schedules/v1/cron-jobs/{id} Delete a scheduled test job · Delete a scheduled test job #
Ask an LLM
“How do I stop a scheduled AI test job from running?”
“Can I delete a scheduled test job I no longer need?”
Tell an agent destructive · confirm first
Delete scheduled test job {id}.
Stop and remove test job {id}.
GET /ai/tests/schedules/v1/cron-jobs/{id} Get a scheduled test job · Retrieve a scheduled test job #
Ask an LLM
“What cron schedule and scenarios does a scheduled test job use?”
“Can I look up one scheduled AI test job by ID?”
Tell an agent
Show scheduled test job {id}.
Get the schedule of test job {id}.
PATCH /ai/tests/schedules/v1/cron-jobs/{id} Update a scheduled test job · Update a scheduled test job #
Ask an LLM
“Can I change the cron schedule of an existing scheduled test job?”
“Is it possible to rename a scheduled AI test job?”
Tell an agent
Change the schedule of test job {id} to {crontab_expression}.
Rename scheduled test job {id} to {name}.
GET /ai/tests/test_framework/v1/aiagents List AI test agents · List test agents #
Ask an LLM
“What AI test agents have I created to drive simulated callers?”
“Can I page through my test agents?”
Tell an agent
List my AI test agents.
Show test agents, {page_size} per page.
POST /ai/tests/test_framework/v1/aiagents Create an AI test agent · Create a test agent #
Ask an LLM
“How do I wrap an AI assistant so simulated callers can test it?”
“Can I set the language and prompt for a new test agent?”
Tell an agent
Create test agent {agent_name} for assistant {assistant_id}.
Create test agent {agent_name} speaking {language} with prompt {llm_system_prompt}.
DELETE /ai/tests/test_framework/v1/aiagents/{id} Delete an AI test agent · Delete a test agent #
Ask an LLM
“How do I remove a test agent I no longer use?”
“Can I delete an AI test agent?”
Tell an agent destructive · confirm first
Delete test agent {id}.
Remove AI test agent {id}.
GET /ai/tests/test_framework/v1/aiagents/{id} Get an AI test agent · Retrieve a test agent #
Ask an LLM
“What assistant and language does a test agent use?”
“Can I look up one AI test agent by ID?”
Tell an agent
Show test agent {id}.
Get the assistant and language of test agent {id}.
PUT /ai/tests/test_framework/v1/aiagents/{id} Update an AI test agent · Update a test agent #
Ask an LLM
“Can I change the assistant an existing test agent wraps?”
“Is it possible to rename a test agent?”
Tell an agent
Point test agent {id} at assistant {assistant_id}.
Rename test agent {id} to {agent_name}.
GET /ai/tests/test_framework/v1/metrics List AI test metrics · List test metrics #
Ask an LLM
“Which metrics are available to score my AI assistant's conversations?”
“Can I see only the metrics for one test agent?”
Tell an agent
List my AI test metrics.
Show metrics for test agent {agent_id}.
POST /ai/tests/test_framework/v1/metrics Create an AI test metric · Create a test metric #
Ask an LLM
“How do I add a custom metric to score my AI assistant?”
“Can I create a metric that judges a conversation with a prompt?”
Tell an agent
Create test metric {name} of type {type}.
Create metric {name} scoring {eval_type} with prompt {prompt}.
POST /ai/tests/test_framework/v1/metrics/bulk_create Create several AI test metrics at once · Bulk create test metrics #
Ask an LLM
“Can I create many AI test metrics in one request?”
“Is there a bulk way to add several metrics to my assistant?”
Tell an agent
Bulk create these AI test metrics.
Add several new test metrics in one request.
POST /ai/tests/test_framework/v1/metrics/generate_metrics Suggest metrics for a test agent · Generate test metrics #
Ask an LLM
“Can AI suggest metrics for my test agent?”
“How many suggested metrics can I ask for at once?”
Tell an agent
Suggest {num_metrics} metrics for test agent {agent_id}.
Generate {num_metrics} suggested metrics for agent {agent_id} based on scenarios {scenarios}.
GET /ai/tests/test_framework/v1/metrics/generate_metrics_progress Check metric suggestion progress · Get test metric generation progress #
Ask an LLM
“Has the background metric suggestion job finished?”
“Where do I check the progress of suggested metrics?”
Tell an agent
Get the progress of metric suggestion job {progress_id}.
Check whether suggested metrics for job {progress_id} are ready.
DELETE /ai/tests/test_framework/v1/metrics/{id} Delete an AI test metric · Delete a test metric #
Ask an LLM
“How do I remove a metric I no longer score my assistant with?”
“Can I delete an AI test metric?”
Tell an agent destructive · confirm first
Delete test metric {id}.
Remove the metric {id}.
GET /ai/tests/test_framework/v1/metrics/{id} Get an AI test metric · Retrieve a test metric #
Ask an LLM
“What prompt and type does a particular test metric use?”
“Can I look up one AI test metric by ID?”
Tell an agent
Show test metric {id}.
Get the prompt of metric {id}.
PATCH /ai/tests/test_framework/v1/metrics/{id} Update an AI test metric · Update a test metric #
Ask an LLM
“Can I change the prompt of an existing test metric?”
“Is it possible to rename a test metric?”
Tell an agent
Change the prompt of metric {id} to {prompt}.
Rename test metric {id} to {name}.
GET /ai/tests/test_framework/v1/personalities List simulated caller personalities · List test personalities #
Ask an LLM
“What simulated caller personalities can I use for my tests?”
“Which accents and interruption levels are available for test agents?”
Tell an agent
List the test personalities available to my organization.
Show simulated caller personalities.
GET /ai/tests/test_framework/v1/results List AI test run results · List test run results #
Ask an LLM
“What were the results of my AI assistant's test runs?”
“Can I filter test run results by scenario or search text?”
Tell an agent
List my AI test run results.
Show test run results for scenarios {scenarios}.
DELETE /ai/tests/test_framework/v1/results/{id} Delete an AI test run result · Delete a test run result #
Ask an LLM
“How do I remove a test run batch?”
“Can I delete an AI test run result?”
Tell an agent destructive · confirm first
Delete test run result {id}.
Remove the AI test run batch {id}.
GET /ai/tests/test_framework/v1/results/{id} Get the result of an AI test run · Retrieve a test run result #
Ask an LLM
“How did a batch of AI test scenarios perform?”
“Can I see per-run detail for a test run?”
Tell an agent
Show test run result {id}.
Get the per-run detail of test run {id}.
POST /ai/tests/test_framework/v1/results/{id}/rerun Re-run an AI test run · Rerun a test run result #
Ask an LLM
“Can I re-execute the scenarios of a test run?”
“What happens to the original test run when I rerun it?”
Tell an agent
Rerun test run {id}.
Re-execute the scenarios in test run {id}.
GET /ai/tests/test_framework/v1/scenarios List AI evaluator scenarios · List evaluator scenarios #
Ask an LLM
“Which AI evaluator scenarios exist in my organization?”
“Can I filter evaluator scenarios by test agent or tags?”
Tell an agent
List my AI evaluator scenarios.
Show evaluator scenarios for test agent {agent_id}.
POST /ai/tests/test_framework/v1/scenarios Create an AI evaluator scenario · Create an evaluator scenario #
Ask an LLM
“How do I create a scenario for a test agent to evaluate?”
“Can I set the personality and expected outcome prompt of a new evaluator scenario?”
Tell an agent
Create an evaluator scenario named {name} with personality {personality}.
Add a new AI scenario {name} for test agent {agent}.
GET /ai/tests/test_framework/v1/scenarios/export_scenarios Export AI evaluator scenarios · Export evaluator scenarios #
Ask an LLM
“Can I download my evaluator scenarios as CSV or XLSX?”
“Is there a way to export selected AI scenarios?”
Tell an agent
Export scenarios {scenario_ids} as {export_type}.
Download the selected AI scenarios {scenario_ids} in {export_type} format.
POST /ai/tests/test_framework/v1/scenarios/generate-bg Generate AI evaluator scenarios in the background · Generate evaluator scenarios #
Ask an LLM
“Can AI generate scenarios for a test agent without me writing them?”
“Is it possible to generate expected outcomes along with new scenarios?”
Tell an agent
Generate {num_scenarios} scenarios for test agent {agent_id}.
Start background generation of {num_scenarios} scenarios with expected outcomes {generate_expected_outcomes}.
GET /ai/tests/test_framework/v1/scenarios/generate-progress Check AI scenario generation progress · Get scenario generation progress #
Ask an LLM
“Has my batch of generated scenarios finished?”
“Where do I poll for the status of scenario generation?”
Tell an agent
Check scenario generation progress {progress_id}.
Get the status of background scenario generation {progress_id}.
POST /ai/tests/test_framework/v1/scenarios/run_scenarios Run AI evaluator scenarios · Run evaluator scenarios #
Ask an LLM
“How do I run a batch of evaluator scenarios against their test agents?”
“Can I limit how many scenarios run at once?”
Tell an agent
Run scenarios {scenarios} against test agent {agent_id}.
Run scenarios {scenarios} with a concurrency limit of {concurrency_limit}.
POST /ai/tests/test_framework/v1/scenarios/scenario-agent Improve AI evaluator scenarios interactively · Improve evaluator scenarios #
Ask an LLM
“Can I improve existing evaluator scenarios with a natural-language instruction?”
“Is there an interactive way to fix scenarios that failed?”
Tell an agent
Improve scenarios {scenarios} with the instruction {user_message}.
Revise scenarios {scenarios} using {user_message}.
GET /ai/tests/test_framework/v1/scenarios/scenario-agent-progress Check AI scenario improvement progress · Get improve-scenarios progress #
Ask an LLM
“Is the interactive scenario improvement session finished?”
“Where do I poll for the status of an improve-scenarios session?”
Tell an agent
Check improve-scenarios progress {progress_id}.
Get the status of scenario improvement session {progress_id}.
DELETE /ai/tests/test_framework/v1/scenarios/{id} Delete an AI evaluator scenario · Delete an evaluator scenario #
Ask an LLM
“How do I delete an evaluator scenario?”
“Can I remove a scenario I no longer use?”
Tell an agent destructive · confirm first
Delete evaluator scenario {id}.
Remove the AI scenario {id}.
GET /ai/tests/test_framework/v1/scenarios/{id} Get an AI evaluator scenario · Retrieve an evaluator scenario #
Ask an LLM
“What are the full details of one evaluator scenario?”
“Can I see the expected outcome prompt of a scenario?”
Tell an agent
Show evaluator scenario {id}.
Get the full details of scenario {id}.
PATCH /ai/tests/test_framework/v1/scenarios/{id} Update an AI evaluator scenario · Update an evaluator scenario #
Ask an LLM
“Can I change the instructions or metrics of an existing evaluator scenario?”
“Is it possible to rename a scenario?”
Tell an agent
Update scenario {id} with name {name}.
Change the metrics of scenario {id} to {metrics}.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/telnyx:telnyx-ai-tests-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

telnyx-ai-tests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.0.0
  x-latency-category: responsive
  x-endpoint-cost: light
  title: Telnyx AI Tests API
  description: SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
  contact:
    email: support@telnyx.com
servers:
- url: https://api.telnyx.com/v2
  description: Version 2.0.0 of the Telnyx API
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (196 KB total) ---
# Full source: https://artifacts.apis.io/telnyx/openapi/telnyx-ai-tests-api-openapi.yml