cURL
Test Case
Retrieve Test Cases
Get test cases for a prompt
GET
cURL
Retrieve test cases for a specific prompt. This endpoint returns test cases associated with the given prompt ID, with options to filter by prompt version and include generation data.
Retrieve Test Cases
Parameters
Response
The response returns an array of test case objects with the following properties:Example Response
Response
200 - application/json
List of test cases
Unique identifier for the test case
Title of the test case
Array of message objects with role and content
Key-value pairs of variables used in the test case
Key-value pairs of rich content variables
Array of file objects attached to the test case
UUID of the prompt this test case belongs to
Expected output for evaluation purposes
Evaluation answers with good/bad results and evals
UUID of the prompt application if applicable
Creation timestamp
Last update timestamp
Deletion timestamp if applicable
Metadata about the test case
Array of generations (only included if includeGenerations=true)