How Documents Are Created
Controlling Save Behavior
By default, every sync render saves the PDF as a document. You can control this with two fields in the render request body:save: false— skip saving entirely (useful for previews or ephemeral renders)saveName: "Q1 Report"— custom document name instead of the default{slug}-{YYYY-MM-DD}
Metadata
Tag documents with your own key-value pairs for organization and retrieval:renderTimeMs, templateSlug) on the document record.
Filtering
Query documents by metadata values usingmetadata.* query parameters:
Retention
Documents are retained based on your plan:
After the retention period, documents and their stored PDFs are permanently deleted.
Storage
PDFs are stored in Cloudflare R2 (S3-compatible). ThestorageKey is server-side only and never exposed to the frontend.
Download URLs
Retrieve a document by ID to get a presigned download URL with 1-hour expiry:Listing Documents
See Render API — Resources for the full listing API with pagination, source filtering, date ranges, and metadata queries.Audit Trail
Every operation on a document is logged — who did what, when, and how (dashboard or API key). See Audit Trail for details.Documents are a hosted API feature. Self-hosted instances have no storage layer — PDFs are returned directly and not persisted.