Logs
Export
Download persisted log rows for the active workspace. Export never widens the retention window or invents rows outside the query.
Endpoint
GET /app/logs/export — session auth (signed-in workspace member). Entitlement: log_management. Workspace id is taken from the active session only.
format—ndjson(default),csv, orjson.q— same query language as search.from/to— ISO timestamps, clamped to plan retention.- Optional
sourceId/projectId(must belong to the workspace).
Formats
- NDJSON / JSONL — one entry per line.
- CSV — stable columns; structured fields as JSON cells.
- JSON — document with
generatedAt,count,items.
Retention clamp
- Free — rejected (no historical export).
- Pro — max 7 days.
- Team — max 30 days.
- Enterprise — contract-provisioned only; fail closed if unset.
If from is earlier than the allowed window, the request fails (400) — no silent widening.
Limitations
- Hard cap: 5,000 rows per export (413 if exceeded).
- Returns rows as stored after ingest redaction.
- Rate-limited per workspace member.