4e064cf81dae

latestOpenAPI 3.1.02026-08-131831,331960.0 KB
testsets

Create a testset

Create a new testset for evaluation. Public API responses return the external testset ID and column metadata only.

post/api/testsets/

Headers

Authorizationstring required

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

Request body

namestring required

Testset name.

descriptionstring

Optional description stored with the testset.

starredboolean

Whether to star the testset in the UI.

Response

Created testset.

idstring required

Public testset ID.

namestring required

Testset name.

created_atstring date-time required

When the testset was created.

updated_atstring date-time required

When the testset was last updated.

current_max_row_indexnumber double required

Highest row index currently present in the testset.

projectstring nullable

Project identifier when the testset is associated with a project.