---
title: "Export logs to file (GET form)"
method: GET
path: "/v1/logs/export"
tags: ["Logs"]
---

# Export logs to file (GET form)

`GET /v1/logs/export`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/logs/export`
- Auth: HTTP bearer

Same handler and same result as `POST /v1/logs/export`: writes all log
entries to a JSON file in `~/Library/Application Support/ToolPiper/exports/`.
Not idempotent in the RFC sense — every call writes a new timestamped file.
Exists so an operator can trigger an export from a browser address bar.

## Response `200`

Logs exported

- LogExportResult
  - `ok` true, required
  - `path` string, required: Absolute path to the exported file
  - `count` integer, required

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
