---
title: "Export testcase data as CSV"
method: GET
path: "/export/testcase/csv"
tags: ["Exporter"]
---

# Export testcase data as CSV

`GET /export/testcase/csv`

## Request

- Base URL: `https://app.testiny.io/api/v1`
- URL: `https://app.testiny.io/api/v1/export/testcase/csv`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/testiny/apis/testiny-api/docs/export/testcase/csv/get.ts> (a function with typed inputs; its response is checked against the schema)

Export testcase data as CSV based on the supplied parameters. Must include a project id (project_id) and either a test case folder ids (tcf_ids) or testcase ids (tc_ids).

## Query parameters

- `project_id` integer, required
- `tcf_ids` string
- `tc_ids` string
- `delimiter` string
- `lang` string

## Response `200`

Returns 'ExportCsvResult'

- string: The exported data in CSV format

## Other responses

- `4XX`: The request failed because invalid request parameters or data were supplied or access was denied.
- `5XX`: The request failed because an error occurred during processing of the request.

---

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