GET
/
v1
/
testset
curl --request GET \
  --url https://api.getscorecard.ai/v1/testset \
  --header 'X-API-Key: <api-key>'
{
  "items": [
    {
      "id": 1,
      "created_at": "2025-02-06T00:05:50.224015",
      "name": "Example Testset",
      "description": "A testset to finally confirm if the moon is made of cheese.",
      "using_retrieval": true,
      "ingestion_method": "manual",
      "num_testcases": 10,
      "published": true,
      "updated_at": "2025-02-07T00:05:50.224392",
      "is_archived": true,
      "project_id": 1,
      "custom_schema": {
        "variables": [
          {
            "data_type": "file_url",
            "description": "example file url",
            "name": "example_file_url",
            "role": "input"
          },
          {
            "data_type": "json_object",
            "description": "example json object",
            "name": "example_json_object",
            "role": "output"
          },
          {
            "data_type": "text",
            "description": "example text",
            "name": "example_text",
            "role": "label"
          }
        ]
      },
      "created_by_playground": true
    }
  ],
  "total": 123,
  "current_page": "<string>",
  "current_page_backwards": "<string>",
  "previous_page": "<string>",
  "next_page": "<string>"
}

Authorizations

X-API-Key
string
header
required

Query Parameters

cursor
string | null
size
integer
default:
50
Required range: 0 < x < 100

Response

200
application/json
Successful Response
items
object[]
required
total
integer | null

Total items

current_page
string | null

Cursor to refetch the current page

current_page_backwards
string | null

Cursor to refetch the current page starting from the last item

previous_page
string | null

Cursor for the previous page

next_page
string | null

Cursor for the next page