To implement a preview feature in your application, you can use the Playout API to fetch and display content before it goes live. This is particularly useful for quality assurance and content verification.
To publish a data set for preview, the project needs to be in preview mode and be published. This can be done via the Jay Curator.
To be able to see changes in preview mode, the project must be re-published through the Jay Curator after making changes.
When the project is in preview mode and published, you can fetch the preview content using the Playout API. Use the same endpoints as for live content, but ensure that you use the Preview-API key, which has access to the preview environment.
Make sure the preview key is not published in a public repository or client-side code.