Developer guides
Embed reports and visuals
Show a Vizset report or visual inside your own web application.
How embedding works
An embedded report or visual is shown in a sandboxed iframe of Vizset's embed page. Your page loads the embed SDK and gives it an embed token. The SDK exchanges the token for a short guest session, and the content renders in the frame with the token's rules applied.
Your application does not rebuild any chart, and your users do not need a Vizset account.
1. Set up embedding for the workspace
Open Console and choose Embedded.
| Setting | What it does | Default |
|---|---|---|
| Embed secret | Signs embed tokens. Treat it like a password. | None until you set one |
| Token TTL | How long a token stays valid, from 60 to 86,400 seconds. | 3,600 seconds (1 hour) |
| Allowed origins | The sites that may embed your content, as a comma-separated list. | Empty: any site |
| Login timeout | How long the frame waits for the guest session to start. | 20,000 ms |
| Visual data timeout | The longest a chart or filter query may run for an embed viewer. | Empty: no limit |
Important
Set the allowed origins before you go live. An empty list lets any site embed your content.
2. Create an embed token
Embed tokens are created from the page of the visual or report you want to embed. Each token is for one visual or one report, and can have its own:
Allowed origins, narrower than the workspace's.
Row-level security condition, and the datasets it applies to, so each of your customers sees only their rows.
Pre-applied filters that the viewer cannot remove.
Theme, to match your application.
Expiry date.
3. Add it to your application
Install the SDK:
npm install @nexabi/embed-sdkThe SDK supports React, Next.js (App Router and Pages Router) and plain JavaScript modules. The token's page gives you a snippet for each, ready to paste.
Manage tokens
Tokens can be listed, changed, revoked and regenerated. Each token shows when it was last used and how often. Revoke a token as soon as it is no longer needed.
Checklist before going live
The embed secret has not been shared outside the people who need it.
Allowed origins list only your own sites.
Every token for customer-facing content has a row-level security condition.
Tokens that are no longer used have been revoked.