API-First PDF SaaS v0
Generate production PDFs from HTML with usage controls built in.
Upload ready HTML to `POST /v1/documents/render`, receive JSON metadata and a secure download URL, and control access with API keys, quota windows, and retention rules.
What is implemented in v0
- Single-owner workspace bootstrap on first login.
- API key lifecycle: create, rotate, deactivate.
- Plan model with `free` and `paid_beta` (monthly/annual).
- Render and download public API with structured error envelope.
- Quota windows, rate limiting, retention and audit/usage tracking.
Public API quick example
curl -X POST "$APP_BASE_URL/v1/documents/render" \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
-d '{"html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}'Detailed API docs are available in `web/docs/public-api.md`.