---
title: "Get Testsets"
method: GET
path: "/testsets"
tags: ["Testsets"]
---

# Get Testsets

`GET /testsets`

Get all testsets.

Returns:
- A list of testset objects.

Raises:
- `HTTPException` with status code 404 if no testsets are found.

## Query parameters

- `name` string, nullable

## Response `200`

Successful Response

- TestsetOutputResponse[]
  - `_id` string, required
  - `name` string, required
  - `created_at` string, required
  - `updated_at` string, required
  - `columns` string[]

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-14** `53da4c9de2b7` — 3 info
  - added the new optional `query` request parameter `name`
  - added the non-success response with the status `422`
  - added the optional property `items/columns` to the response with the `200` status
- **2025-06-27** `e3e84db47198` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/testsets/get.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenta-ai/apis/agenta-api/revisions/53da4c9de2b7?raw)
