Skip to main content
GET
/
v1
/
projects
/
{projectId}
/
test-cases
List Test Cases
curl --request GET \
  --url https://api.pathors.com/v1/projects/{projectId}/test-cases \
  --header 'Authorization: <authorization>'
{
  "data": [
    {}
  ]
}

Request

GET https://api.pathors.com/v1/projects/{projectId}/test-cases

Path Parameters

projectId
string
required
The project ID

Headers

Authorization
string
required
Bearer token using your developer key

Response

data
array
Array of test case objects with id, name, systemPrompt, maxTurns, variables, and acceptanceCriteria.

Example

curl https://api.pathors.com/v1/projects/{projectId}/test-cases \
  -H "Authorization: Bearer dk_your_key"
{
  "data": [
    {
      "id": "test-case-uuid",
      "projectId": "project-uuid",
      "name": "Greeting flow",
      "systemPrompt": "You are a helpful assistant",
      "maxTurns": 5,
      "variables": {},
      "acceptanceCriteria": [
        {
          "id": "criterion-uuid",
          "testCaseId": "test-case-uuid",
          "description": "Agent should greet the user"
        }
      ],
      "createdAt": "2026-03-23T00:00:00.000Z",
      "updatedAt": "2026-03-23T00:00:00.000Z"
    }
  ]
}