What Gets Logged
| Event | Description |
|---|---|
uploaded | Document uploaded to the dashboard |
generated | PDF rendered via API (POST /v1/render/:slug) |
redacted | Sensitive content redacted |
merged | Multiple PDFs combined |
certified | Digital signature applied |
downloaded | Document downloaded from the dashboard |
deleted | Document removed |
Who Gets Logged
- Dashboard users: The user’s email address (from Clerk authentication)
- API key users: The API key name (e.g., “Production Key”) — not the key itself
Viewing the Audit Trail
Open any document in the Document Editor and expand the History panel. Events are shown in reverse chronological order with:- Event type (with icon)
- Actor (user email or “API - Key Name”)
- Timestamp
Durability
Audit events are tied to the document record and survive:- Document re-renders
- Metadata updates
- Status changes (draft → sent → paid)
Use Cases
- HIPAA compliance: Demonstrate who accessed or modified patient documents
- Legal discovery: Prove chain of custody for certified documents
- Internal audit: Track which API key or team member generated specific documents
- Incident response: Identify when and how a document was modified