> ## Documentation Index
> Fetch the complete documentation index at: https://servitlive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export

> Export your library to JSON, CSV, TXT, HTML, EPUB, or Markdown.

`GET /export` writes every story to a file in the project directory, and `GET /download/:filename` downloads it.

Supported formats: `json` (default), `csv`, `txt`, `html`, `epub`, `markdown` (or `md`).

```bash theme={null}
curl "http://localhost:3000/export?format=epub&filename=library.epub"
curl -O http://localhost:3000/download/library.epub
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.