---
title: "Export runs data"
method: GET
path: "/v1/runs/export"
tags: ["Runs"]
---

# Export runs data

`GET /v1/runs/export`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/runs/export`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/runs/export/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint requires a valid private API key sent as a bearer token.

## Query parameters

- `type` 'llm' | 'trace' | 'thread', required
- `exportFormat` 'csv' | 'jsonl' | 'ojsonl', required

## Response `200`

Export successful

## Other responses

- `401`: Invalid Private Key

---

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