---
title: "Export Bundle"
method: POST
path: "/api/v1/export/bundle"
tags: ["export", "export"]
---

# Export Bundle

`POST /api/v1/export/bundle`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/export/bundle`
- Auth: none declared

Stream a ZIP containing only the selected data types.

Valid ``include`` values: ``clients``, ``time-entries``, ``invoices``,
``invoice-history``, ``invoice-pdfs``, ``invoice-ubl``, ``expenses`` (CSV +
receipt files).  Returns 400 if the
list is empty or contains invalid keys.  Individual PDF generation failures
are skipped with a log warning.

## Request body

- BundleRequest
  - `include` string[], required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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