Skip to main content

Trigger test suite execution

POST 
/ai/assistants/tests/test-suites/:suite_name/runs

Executes all tests within a specific test suite as a batch operation

Request

Path Parameters

    suite_name Suite Namerequired

Responses

201: Returns array of created test runs for all tests in the suite

422: Validation Error

Request samples


curl -L -X POST 'https://api.telnyx.com/v2/ai/assistants/tests/test-suites/:suite_name/runs' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


[
{
"run_id": "987fcdeb-51a2-43d1-b456-426614174000",
"test_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"triggered_by": [
"manual",
"cron"
],
"completed_at": "2024-07-29T15:51:28.071Z",
"logs": "string",
"conversation_id": "string",
"conversation_insights_id": "string",
"test_suite_run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": [
"2024-01-15T10:30:00Z"
],
"updated_at": "2024-07-29T15:51:28.071Z",
"detail_status": [
{
"name": "string",
"status": "pending"
}
]
}
]