---
title: "Re-run the session plan and export results as CSV"
method: GET
path: "/api/agent/session/:id/csv"
tags: ["AI Agent"]
---

# Re-run the session plan and export results as CSV

`GET /api/agent/session/:id/csv`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/agent/session/:id/csv`
- Auth: none declared

Re-executes the full plan with the saved user inputs, injects format=csv into the last data step, and returns a fresh CSV file. The data is always fetched live from the source.

## Path parameters

- `id` string, required

## Query parameters

- `token` string

## Response `200`

CSV file

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
