Skip to main content
GET
/
api
/
v2
/
projects
/
{project_id}
/
prompt-datasets
/
{dataset_id}
/
test-cases
List Prompt Test Cases
curl --request GET \
  --url https://api.example.com/api/v2/projects/{project_id}/prompt-datasets/{dataset_id}/test-cases \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "inputs": {},
      "output": null,
      "output_message": {
        "content": [
          {
            "text": "<string>",
            "type": "text"
          }
        ],
        "role": "user"
      },
      "metadata": null,
      "media_inputs": null,
      "history": null
    }
  ],
  "pagination": {
    "page": 123,
    "page_size": 123,
    "has_next": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required
dataset_id
string
required

Query Parameters

page
integer
default:1
page_size
integer
default:30

Response

200 - application/json

PromptTestCasesListResponse(data: list[server.api_routes.prompt_datasets_api_v2.PromptTestCaseResponse], pagination: server.api_routes.api_v2_common.PaginationInfo)

data
PromptTestCaseResponse · object[]
required
pagination
PaginationInfo · object
required