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

Create a testset

POST
https://api.respan.ai/api/testsets/
POST
/api/testsets/
$curl -X POST https://api.respan.ai/api/testsets/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "QA Test Set"
>}'
1{
2 "id": "6f41f95bb8c04656b6f6d9d5a98f4f2c",
3 "name": "QA Test Set",
4 "created_at": "2026-01-15T09:30:00Z",
5 "updated_at": "2026-01-15T09:30:00Z",
6 "current_max_row_index": 2,
7 "project": null,
8 "column_definitions": [
9 {
10 "field": "input",
11 "mapped_name": "question",
12 "type": "text"
13 },
14 {
15 "field": "expected_output",
16 "type": "text"
17 }
18 ]
19}
Create a new testset for evaluation. Public API responses return the external testset ID and column metadata only.
Was this page helpful?
Previous

List testsets

Next
Built with

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringRequired
Testset name.
descriptionstringOptional
Optional description stored with the testset.
starredbooleanOptionalDefaults to false
Whether to star the testset in the UI.
column_definitionslist of objectsOptional
Column definitions for the testset rows.

Response

Created testset.
idstring
Public testset ID.
namestring
Testset name.
created_atdatetime
When the testset was created.
updated_atdatetime
When the testset was last updated.
current_max_row_indexdouble
Highest row index currently present in the testset.
projectstring or null
Project identifier when the testset is associated with a project.
column_definitionslist of objects
Configured columns for testset rows.

Errors

400
Bad Request Error
401
Unauthorized Error