---
title: "Queries plan runs with csv output"
method: GET
path: "/exports/workspaces/{workspace_id}/planRuns"
tags: ["Export"]
---

# Queries plan runs with csv output

`GET /exports/workspaces/{workspace_id}/planRuns`

Used to query plan runs and export to csv

## Path parameters

- `workspace_id` string, required

## Query parameters

- `plan_id` string, required
- `data_format` 'csv', required
- `status` 'cancelled' | 'completed' | 'failed' | 'post_execution' | 'pre_execution' | 'queued' | 'scheduled' | 'scheduling' | 'succeeded' | 'terminated'
- `limit` integer

## Response `200`

A CSV file containing the query results.

## Other responses

- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

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