---
title: "Export task history as CSV"
method: GET
path: "/api/scheduled-tasks/{id}/runs/export"
tags: ["Scheduled Tasks"]
---

# Export task history as CSV

`GET /api/scheduled-tasks/{id}/runs/export`

Downloads the execution history for a scheduled task as a CSV file. Requires admin role.

## Path parameters

- `id` integer, required

## Response `200`

CSV file download.

## Other responses

- `400` — Invalid task ID.
- `403` — Insufficient permissions or license tier.
- `404` — Resource not found.
- `500` — Internal server error.

---

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