---
title: "List tests"
method: GET
path: "/api/v1/agents/{agent_id}/eval-cases"
tags: ["authed"]
---

# List tests

`GET /api/v1/agents/{agent_id}/eval-cases`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/agents/{agent_id}/eval-cases`
- Auth: none declared

An agent's tests, newest first, each with its status and how many
checks it makes. A full page means more may follow; pass the last item's
created_at and id.

## Path parameters

- `agent_id` string, uuid, required: The agent whose tests to list.

## Query parameters

- `conversation_id` string, uuid, nullable: Only the tests made from this conversation.
- `before_created_at` string, date-time, nullable: With before_id: the last row of the previous page's created_at, to read the next page.
- `before_id` string, uuid, nullable: With the sort cursor: the last row of the previous page's id.
- `limit` integer: The most tests to return.

## Response `200`

Successful Response

- TestSummary[]
  - `id` string, uuid, required: The test's id.
  - `agent_id` string, uuid, required: The agent the test belongs to.
  - `conversation_id` string, uuid, required: The conversation the test came from.
  - `conversation_title` string, required: That conversation's title.
  - `title` string, required: The test's title; empty until it is written.
  - `status` 'authoring' | 'authored' | 'admitting' | 'repairing' | 'ready' | 'broken' | 'refused' | 'failed', required
  - `status_reason` string, nullable, required: A sentence saying why the test is where it is, when there's more to say.
  - `status_retryable` boolean, required: Whether writing the test can be tried again.
  - `assertion_count` integer, required: How many checks the test's latest version makes.
  - `version_number` integer, nullable, required: The test's latest version; null until it is written.
  - `created_by_user_id` string, uuid, nullable, required: The member who added it.
  - `created_at` string, date-time, required: When it was added.
  - `updated_at` string, date-time, required: When it last changed.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

---

[API](https://skmtc.dev/teaflask/apis/teaflask-api.md) - [All operations](https://skmtc.dev/teaflask/apis/teaflask-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teaflask/apis/teaflask-api/revisions/d23e9286b847?raw)
