---
title: "Fetch Simple Testset To File"
method: POST
path: "/simple/testsets/{testset_id}/download"
tags: ["Testsets"]
---

# Fetch Simple Testset To File

`POST /simple/testsets/{testset_id}/download`

## Path parameters

- `testset_id` string, uuid, required

## Query parameters

- `file_type` 'csv' | 'json', nullable
- `file_name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-07** `20311f763505` — 1 breaking, 2 warning
  - the response's body type changed from `object` to no type for status `200`
  - removed the optional property `count` from the response with the `200` status
  - removed the optional property `testset` from the response with the `200` status
- **2026-02-27** `8fcd55a5a656` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/simple/testsets/:testset_id/download/post.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/139f8db295da?raw)
