---
title: "Download PocketBase data as a compressed archive"
method: GET
path: "/apps/{appRef}/data/export"
tags: ["Export"]
---

# Download PocketBase data as a compressed archive

`GET /apps/{appRef}/data/export`

## Request

- Base URL: `https://api.percher.run`
- URL: `https://api.percher.run/apps/{appRef}/data/export`
- Auth: HTTP bearer

Authenticated per-app export of pb_data from a running PocketBase container, streamed as tar.gz. Enforces app access and the per-plan daily export quota, and records the attempt before requesting the worker snapshot.

## Path parameters

- `appRef` string, required

## Response `200`

PocketBase data archive stream

## Other responses

- `401`: Authentication required
- `403`: App access denied
- `404`: App not found, PocketBase not enabled or container not running
- `409`: Multiple PocketBase containers matched
- `429`: Daily export quota exhausted
- `502`: Worker could not produce a snapshot

---

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