Preview API
It's the Delivery API, with a preview key. Same routes, same parameters, same response shape. The difference:
delivery key |
preview key |
|
|---|---|---|
| Draft entries | Not shown | Shown |
| Entries with unpublished changes | The published version | The latest version |
| Archived entries | Not shown | Not shown |
| Files | Only those used by something published | All |
| Cache | public, 5 minutes on the CDN |
private, no-store |
Each entry tells you what you're seeing in sys: version is the one you got, published_version the published one (or null if it was never published), and status is draft, published or changed.
Use it for your site's preview. Don't use it in the production build: you'd show drafts.