> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出測試案例

> 列出專案的所有測試案例

## 請求

```bash theme={null}
GET https://api.pathors.com/v1/projects/{projectId}/test-cases
```

### 路徑參數

<ParamField path="projectId" type="string" required>專案 ID</ParamField>

### 標頭

<ParamField header="Authorization" type="string" required>
  使用您的 Developer Key 進行 Bearer 令牌認證
</ParamField>

## 回應

<ResponseField name="data" type="array">
  測試案例物件的陣列，包含 `id`、`name`、`systemPrompt`、`maxTurns`、`variables` 與 `acceptanceCriteria`。
</ResponseField>

### 範例

```bash theme={null}
curl https://api.pathors.com/v1/projects/{projectId}/test-cases \
  -H "Authorization: Bearer dk_your_key"
```

```json theme={null}
{
  "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"
    }
  ]
}
```
