For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTCreate a testset
      • POSTList testsets
      • GETRetrieve a testset
      • PATCHUpdate a testset
      • DELDelete a testset
      • POSTCreate testset rows
      • GETList testset rows
      • PATCHUpdate a testset row
      • DELDelete a testset row
      • GETGet testsets summary
      • POSTGet filtered testsets summary
      • PUTReplace a testset
      • DELDelete testset rows
      • GETRetrieve a testset row
      • PUTReplace a testset row
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceTestsets

List testset rows

GET
https://api.respan.ai/api/testsets/:testset_id/rows/
GET
/api/testsets/:testset_id/rows/
$curl https://api.respan.ai/api/testsets/testset_id/rows/ \
> -H "Authorization: Bearer sk_live_xxxxx"
1{
2 "count": 2,
3 "results": [
4 {
5 "row_index": 1,
6 "testset_id": "6f41f95bb8c04656b6f6d9d5a98f4f2c",
7 "row_data": {
8 "input": "What is 2 + 2?",
9 "expected_output": "4"
10 }
11 },
12 {
13 "row_index": 2,
14 "testset_id": "6f41f95bb8c04656b6f6d9d5a98f4f2c",
15 "row_data": {
16 "input": "What is 3 + 3?",
17 "expected_output": "6"
18 }
19 }
20 ],
21 "next": null,
22 "previous": null,
23 "current_filters": {}
24}
List rows in a testset.
Was this page helpful?
Previous

Update a testset row

Next
Built with

Path parameters

testset_idstringRequired

The testset ID returned as id by the API.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Query parameters

pageintegerOptional>=1
Page number.
page_sizeintegerOptional1-1000
Number of results to return per page. Maximum 1000.

Response

Paginated row list.
countinteger
Number of rows returned in this page.
resultslist of objects
Array of testset rows.
nextstring or null
URL for the next page, if any.
previousstring or null
URL for the previous page, if any.
current_filtersobject
Current filter state returned by the paginator.

Errors

401
Unauthorized Error
404
Not Found Error