Skip to Content

Embedding Setup

Developer Docs

Embed Databrain dashboards and metrics in your app, so each customer sees only their own data. Add one web component and one backend call to get started.

Add a Databrain dashboard to your product with one web component and one backend call.

<dbn-dashboard token="GUEST_TOKEN_FROM_YOUR_BACKEND" dashboard-id="revenue-overview"></dbn-dashboard>

Start here

What you need

ItemWhat it isWhere to get it
Data appHolds your embeds, API tokens and allowed domainsData Studio > Data Apps
API tokenSecret your backend uses to create guest tokensThe data app’s API tokens tab
Guest tokenShort-lived token for one browser session and one customerYour backend, from POST /api/v2/guest-token/create
Dashboard ID or metric IDSays what to showThe embed’s Get snippet
@databrainhq/pluginThe <dbn-dashboard> and <dbn-metric> web componentsnpm install @databrainhq/plugin

Embedding needs the Enterprise plan, or Databrain must turn it on for your company.

Go further

On this page