Skip to main content
GET
/
api
/
v2
/
projects
/
{project_id}
/
agent-datasets
/
{dataset_id}
/
test-cases
cURL
curl -X GET 'https://app.freeplay.ai/api/v2/projects/your-project-id/agent-datasets/your-dataset-id/test-cases' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
{
  "data": [
    {
      "id": "bf56b063-80dc-4ad5-91f6-f7067ad1fa06",
      "input": true,
      "output": true,
      "metadata": {}
    }
  ],
  "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

AgentTestCasesListResponse(data: list[server.api_routes.agent_datasets_api_v2.AgentTestCaseResponse], pagination: server.api_routes.api_v2_common.PaginationInfo)

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

Pagination metadata for list responses