---
title: "Fetch Testset"
method: GET
path: "/testsets/{testset_id}"
tags: ["Testsets"]
---

# Fetch Testset

`GET /testsets/{testset_id}`

Fetch a testset artifact by ID.

Returns the artifact row only; testcases are stored on revisions and
must be fetched via `/testsets/revisions/retrieve` or
`/testcases/query`.

## Path parameters

- `testset_id` string, uuid, required

## Response `200`

Successful Response

- TestsetResponse
  - `count` integer — 1 if a testset was returned, 0 otherwise.
  - `testset` Testset
    - `folder_id` string, uuid, nullable
    - `flags` TestsetFlags — Placeholder for testset-level flags. This model is intentionally empty but kept as a dedicated type so that: - existing references to `flags: Optional[TestsetFlags]` remain valid, and - structured flags can be added here in the future without breaking the surrounding DTOs.
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable

## Other responses

- `422` — Validation Error

## Changes

> 359 revisions in range; 46 could not be searched.

- **2025-06-27** `e3e84db47198` — 1 breaking, 4 warning, 2 info
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `count` from the response with the `200` status
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status
  - …3 more

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/testsets/:testset_id/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-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/713e4f3b7519/schema)
