Embeds
Embed a Pre-built Dashboard/Metric
Create an embed for an existing dashboard or metric that was built by your data analyst.
POST
Embed existing dashboards or metrics from your workspace. Use this endpoint when a dashboard has already been created in the DataBrain platform and you want to make it available for embedding in your application.
Use this endpoint for all new integrations. This is the recommended endpoint format.
This endpoint embeds existing dashboards/metrics from your workspace. To create a new client dashboard for multi-tenant scenarios, use the Create a Dashboard Embed endpoint instead.
Endpoint Formats
- New Endpoint (Recommended)
- Legacy Endpoint (Deprecated Soon)
Authentication
All API requests must include your API key in the Authorization header. Get your API token when creating a data app - see our data app creation guide for details. Finding your API token: For detailed instructions, see the API Token guide.Headers
Request Body
Optional human-readable name for the embed configuration. If not provided, the embed ID will be used as the name.
Access control settings for the embedded view. Required when
embedType is dashboard. Optional when embedType is metric.The datamart name used in the embedded environment. Required when
embedType is dashboard.Optional allowlist for dashboard filterable columns. Each item must include
tableName and columns.Optional allowlist for columns that end users can use in metric filters. Each item must include
tableName and columns.Recommended join strategy for table relationships.
single: single worksheet mode (tables are pre-joined into one worksheet)multi: multi-sheet mode (joins are resolved dynamically based on fields used in each chart)
Response
HTTP Status Code Summary
Possible Errors
Quick Start Guide
1
Get your API token
For detailed instructions, see the API Token guide.
2
Create a dashboard in your workspace
First, create and configure your dashboard in the DataBrain workspace with all the metrics and visualizations you want to embed.
3
Create embed configuration for dashboard
Make a POST request to embed your existing dashboard:
4
(Optional) Embed a single metric
To embed just one metric instead of the entire dashboard, use
embedType: "metric":5
Generate a guest token
Use the embed ID to generate a guest token for your end users. See the Guest Token API for details.
6
Embed in your application
Use the embed ID and guest token in your web component:
Next Steps
Generate Guest Token
Create secure tokens for your embed configurations
Create an Empty Dashboard
Create new empty dashboards for multi-tenant scenarios
Update Embed Config
Modify existing embed configurations
How to Embed
Learn how to integrate embeds in your application

