---
title: "Fetch Testset Revision To File"
method: POST
path: "/testsets/revisions/{testset_revision_id}/download"
tags: ["Testsets"]
---

# Fetch Testset Revision To File

`POST /testsets/revisions/{testset_revision_id}/download`

## Path parameters

- `testset_revision_id` string, uuid, required

## Query parameters

- `file_type` 'csv' | 'json', nullable — File type to download. Supported: 'csv' or 'json'. Default: 'csv'.
- `file_name` string, nullable — Optional custom filename for the download.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/versions/d43a05d98a9b/schema)
