Skip to main content

List assistant tests with pagination

GET 
/ai/assistants/tests

Retrieves a paginated list of assistant tests with optional filtering capabilities

Request

Query Parameters

    page[size] Page[Size]

    Possible values: >= 1 and <= 100

    Default value: 20

    Number of tests to return per page (1-100)

    page[number] Page[Number]

    Possible values: >= 1

    Default value: 1

    Page number to retrieve (1-based indexing)

    test_suite Test Suite

    Filter tests by test suite name

    telnyx_conversation_channel Telnyx Conversation Channel

    Filter tests by communication channel (e.g., 'web_chat', 'sms')

    destination Destination

    Filter tests by destination (phone number, webhook URL, etc.)

Responses

200: Returns paginated test list with metadata for navigation and filtering

422: Validation Error

Request samples


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

Response samples


{
"meta": {
"total_pages": 0,
"total_results": 0,
"page_number": 0,
"page_size": 0
},
"data": [
{
"test_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Customer Support Bot Test",
"description": "string",
"telnyx_conversation_channel": "phone_call",
"destination": "string",
"max_duration_seconds": 0,
"test_suite": "string",
"instructions": "string",
"rubric": [
[
{
"criteria": "Responds within 30 seconds",
"name": "Response Time"
}
]
],
"created_at": [
"2024-01-15T09:00:00Z"
]
}
]
}