Prompt
headless cms preview approvals
Latest observation
Oct 21, 2026
OpenAI APIWeb search: off
A headless CMS preview/approval workflow usually means:
- Editors create content in the CMS
- Content is saved as draft
- Reviewers/approvers get notified
- They preview the content on the frontend
- They approve or request changes
- Only approved content gets published
Typical architecture
1. Draft content in CMS
The CMS stores:
draftin reviewapprovedpublished
2. Preview frontend
Your website/app has a preview mode that can render unpublished content from the CMS:
- preview by slug or ID
- authenticated access only
- usually uses draft API endpoints or preview tokens
3. Approval workflow
You can implement approvals in a few ways:
Option A: CMS-native workflow
Some headless CMSs support this directly:
- Contentful
- Sanity
- Storyblok
- Strapi (with workflows/plugins depending on version)
- Prismic (limited, depending on setup)
Common features:
- roles
- editorial review
- scheduled publishing
- content statuses
Option B: Custom approval layer
If the CMS doesn’t support approvals well, add a custom workflow:
- add an
approvalStatusfield - add reviewers in your app
- notify approvers when content changes
- approve via admin UI or API
- publish only when approved
Preview flow example
- Author edits article
- CMS saves draft
- CMS generates preview link:
https://site.com/api/preview?token=...&slug=my-post
- Reviewer opens preview
- Reviewer clicks:
- Approve
- Reject
- If approved, content is published
Common implementation pattern
Preview token
Use a secure token so only authorized users can see drafts.
Status-based publishing
Example statuses:
- Draft
- Pending Review
- Changes Requested
- Approved
- Published
Webhook-driven
When content changes:
- CMS sends webhook
- backend creates approval task
- frontend preview cache invalidates
- approver notified via email/Slack
Things to consider
- Authorization: preview content should not be public
- Audit trail: store who approved what and when
- Versioning: keep history of changes
- Diffing: show changes between versions
- Cache invalidation: ensure preview and published versions stay separate
Best practice setup
If you want a robust setup:
- Use CMS for content storage
- Use app backend for approval logic if CMS workflow is limited
- Use signed preview URLs
- Require login for approvers
- Add audit logs and notifications
If you want, I can also provide:
- a recommended architecture diagram
- a database schema for approvals
- or a specific implementation for Next.js + headless CMS