Test Case
Get Test Case by ID
Retrieve a specific test case
GET
Retrieve a specific test case by its unique identifier.
Retrieve a Test Case
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | Yes | The UUID of the test case to retrieve |
Response
The response returns a single test case object with the following properties:
Field | Type | Description |
---|---|---|
id | string | Unique identifier for the test case (UUID) |
title | string | Title of the test case |
messages | array or null | Array of message objects with role and content |
variables | object or null | Key-value pairs of variables used in the test case |
variablesRichContent | object or null | Key-value pairs of rich content variables |
files | array or null | Array of file objects attached to the test case |
promptId | string | UUID of the prompt this test case belongs to |
expectedOutput | string or null | Expected output for evaluation purposes |
answers | object or null | Evaluation answers with good/bad results and evals |
promptApplicationId | string or null | UUID of the prompt application if applicable |
metadata | object or null | Metadata about the test case including source |
createdAt | string | Creation timestamp |
updatedAt | string | Last update timestamp |
deletedAt | string or null | Deletion timestamp if applicable |
Example Response
Path Parameters
Response
200 - application/json
Test case details
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)