> ## 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 the library and download the file.

## GET /export

| Query | Default | Description |
| - | - | - |
| `format` | `json` | `json`, `csv`, `txt`, `html`, `epub`, `markdown`, or `md` |
| `filename` | `stories.<format>` | Output file name |

Returns `{ "filename", "count", "format" }`.

## GET /download/:filename

Downloads an exported file. `404` if it doesn't exist.


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