GET
/
v1
/
testset
/
{testset_id}
/
testcase
curl --request GET \
  --url https://api.getscorecard.ai/v1/testset/{testset_id}/testcase \
  --header 'X-API-Key: <api-key>'
{
  "count": 1000,
  "next": "https://api.getscorecard.ai/v1/testset/100/testcase?offset=200&limit=100",
  "previous": "https://api.getscorecard.ai/v1/testset/100/testcase?offset=0&limit=100",
  "results": [
    {
      "id": 100,
      "created_at": "2025-02-07T00:05:50.184396",
      "testset_id": 123,
      "user_query": "What is the moon made of?",
      "context": "After the Apollo missions, we know the moon is made of cheese.",
      "ideal": "The moon is made of rock.",
      "custom_inputs": {},
      "custom_labels": {}
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testset_id
integer
required

The Testset ID to retrieve testcases from.

Query Parameters

offset
integer
default:
0

The offset to start from.

limit
integer
default:
100

The number of testcases to return.

Response

200
application/json
Successful Response
count
integer
required
next
string | null
required

The URL to fetch the next page of testcases.

Required string length: 1 - 2083
previous
string | null
required

The URL to fetch the previous page of testcases.

Required string length: 1 - 2083
results
object[]
required

The list of Testcases retrieved in this page.