Skip to main content
GET
/
v2
/
list-test-runs
/
{test_case_batch_job_id}
cURL
curl --request GET \
  --url https://api.retellai.com/v2/list-test-runs/{test_case_batch_job_id} \
  --header 'Authorization: Bearer <token>'
{
  "pagination_key": "<string>",
  "has_more": true,
  "items": [
    {
      "test_case_job_id": "<string>",
      "status": "in_progress",
      "test_case_definition_id": "<string>",
      "test_case_definition_snapshot": {
        "name": "<string>",
        "response_engine": {
          "type": "retell-llm",
          "llm_id": "<string>",
          "version": 0
        },
        "user_prompt": "<string>",
        "metrics": [
          "<string>"
        ],
        "dynamic_variables": {},
        "tool_mocks": [
          {
            "tool_name": "<string>",
            "input_match_rule": {
              "type": "any"
            },
            "output": "<string>",
            "result": true
          }
        ],
        "llm_model": "gpt-4.1",
        "test_case_definition_id": "<string>",
        "type": "simulation",
        "creation_timestamp": 123,
        "user_modified_timestamp": 123
      },
      "creation_timestamp": 123,
      "user_modified_timestamp": 123,
      "transcript_snapshot": {},
      "result_explanation": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.retellai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"

Path Parameters

test_case_batch_job_id
string
required

ID of the batch test job

Query Parameters

limit
integer
default:50

Maximum number of items to return.

Required range: x <= 1000
pagination_key
string

Pagination key for fetching the next page.

Response

Test case jobs retrieved successfully

pagination_key
string

Pagination key for the next page.

has_more
boolean

Whether more results are available.

items
object[]