Queue an async export of the tenant's data
Queues a background job that streams the tenant’s data
(accounts, transactions, postings, events, period_closes,
reconciliation_runs, webhook_endpoints, with secrets stripped) into
NDJSON files and returns signed download_urls valid for 7
days. Poll GET /v1/exports/{id} to wait for status: "ready".
Idempotent on Idempotency-Key: replaying the same key returns
the original row (with header idempotent-replayed: true).
Authorizations
Same flow; ledger:write is required for any mutation.
Headers
Required on writes. Stable identifier you choose. The same key
always returns the same transaction, forever. Can also be supplied as
idempotency_key in the request body. Header wins.
Allowed character set: A-Z, a-z, 0-9, _, :, ., -.
Max 255 bytes. Replays of an accepted key return the original
response with header Idempotent-Replayed: true so callers can
tell a replay from a freshly-committed result.
1 - 255^[A-Za-z0-9_:.\-]+$"pi_acme_1234_capture"
Body
Response
Idempotency-Key replay.