How to see a preview of a workspace
This guide shows you how to see an unpublished change on your own site before your visitors get it. You need a draft workspace with at least one change in it.
Steps
- Click Preview in the workspace toolbar.
- Enter the URL of your site.
- Set each feature flag to the Default value, to On, or to Off. This step is optional.
- Click Open preview.
Your site opens in a new tab with the unpublished workspace applied.
The preview sends the workspace state to the SDK in the query parameters. The visitors on your live site therefore see no change.
API and MCP
You can also do this task with the Management API, the MCP server, or code that you send to picked_run.
| Task | GraphQL | MCP tool | Run |
|---|---|---|---|
| Open a preview of the workspace | workspace | get_preview_url | tools.get_preview_url({ workspace_id, target_url }) |
The previewToken field of workspace gives the preview token only. get_preview_url
gives the full URL, with the feature flag values that you set.
Related
- About workspaces and versions — why a preview cannot reach production.
- Workspaces — the workspace states.
