GET
/
v4
/
test-cases
List test cases
curl --request GET \
  --url https://gentrace.ai/api/v4/test-cases \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
      "createdAt": "2025-04-01T00:00:00.000Z",
      "updatedAt": "2025-04-01T00:00:00.000Z",
      "inputs": {
        "query": "What is the capital of France?"
      },
      "expectedOutputs": {
        "answer": "Paris"
      },
      "datasetId": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Capital of France query",
      "pipelineId": "abcdef12-3456-7890-abcd-ef1234567890",
      "archivedAt": "2025-04-01T00:00:00.000Z",
      "deletedAt": "2025-04-01T00:00:00.000Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter Gentrace API key (Format: Authorization: Bearer <token>)

Query Parameters

datasetId
string<uuid>

Dataset ID

Example:

"123e4567-e89b-12d3-a456-426614174000"

pipelineId
string<uuid>

Filter to the datasets for a specific pipeline by UUID

Example:

"123e4567-e89b-12d3-a456-426614174000"

pipelineSlug
string

Pipeline slug

Minimum length: 1
Example:

"email-summarizer"

Response

200
application/json

Successful response

The response is of type object.