AI Tests

Rerun a test run result

Changed on

Re-executes the scenarios of the specified test run batch and creates a new run batch.

post/ai/tests/test_framework/v1/results/{id}/rerun

Request

  • Base URL: https://api.telnyx.com/v2
  • URL: https://api.telnyx.com/v2/ai/tests/test_framework/v1/results/{id}/rerun
  • Auth: HTTP bearer

Path parameters

idinteger required

Numeric ID of the test run batch to rerun.

Response

New test run batch created.

idinteger required
namestring required
agentinteger required
agent_namestring
agent_inboundboolean
statusstring required

Run batch status: running, completed, failed, pending, in_progress, evaluating, in_queue, timeout, cancelled, or scaling_up.

run_as_textboolean

Whether the batch ran as text chat rather than voice calls.

is_cronjobboolean

Whether this batch was started by a scheduled job.

runsobject nullable

Per-run detail keyed by run ID.

run_typestring nullable
created_atstring date-time required
updated_atstring date-time required

Example response

{
  "id": 10119,
  "name": "Refund escalation flow - run",
  "agent": 1259,
  "agent_name": "Support Bot Under Test",
  "agent_inbound": false,
  "status": "completed",
  "success_rate": 0.8,
  "run_as_text": false,
  "is_cronjob": false,
  "runs": null,
  "met_expected_outcome_count": 4,
  "total_expected_outcome_count": 5,
  "total_runs_count": 5,
  "completed_runs_count": 5,
  "success_runs_count": 4,
  "failed_runs_count": 1,
  "scenarios": [
    {
      "id": 9512,
      "name": "Refund escalation flow"
    }
  ],
  "run_type": "scheduled",
  "created_at": "2026-10-13T18:04:05.123456Z",
  "updated_at": "2026-10-13T18:34:05.123456Z"
}

Changes