Skip to main content
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.
Endpoint Migration Notice: We’re transitioning to kebab-case endpoints. The new endpoint is /api/v2/data-app/embeds. The old endpoint /api/v2/dataApp/embeds will be deprecated soon. Please update your integrations to use the new endpoint format.
This endpoint embeds existing dashboards/metrics from your workspace. To create a new empty dashboard for multi-tenant scenarios, use the Create an Empty Dashboard Embed endpoint instead.

Endpoint Formats

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

string
required
Bearer token for API authentication. Use your API key from the data app.
string
required
Must be set to application/json for all requests.

Request Body

string
required
Existing dashboard ID to embed. This dashboard must already exist in your workspace.
'dashboard' | 'metric'
required
Type of embed configuration: dashboard or metric.
string
Metric ID to embed. Required if embedType is metric.
string
required
The name of the workspace where the embed configuration will be created.
string
Optional human-readable name for the embed configuration. If not provided, the embed ID will be used as the name.
object
Access control settings for the embedded view. Required when embedType is dashboard. Optional when embedType is metric.
string
required
The datamart name used in the embedded environment. Required when embedType is dashboard.
boolean
Allow AI Pilot features (optional).
boolean
required
Allow sending email reports.
boolean
required
Allow managing metrics.
boolean
required
Allow creating dashboard views.
boolean
Optional. Enables end-user dashboard filter interactions in embedded mode.
array
Optional allowlist for dashboard filterable columns. Each item must include tableName and columns.
string
required
Fully qualified table name used in dashboard filters.
array[string]
required
Column names allowed for dashboard filter evaluation for the specified table.
boolean
required
Allow metric creation.
boolean
required
Allow metric deletion.
boolean
required
Allow metric layout changes.
boolean
required
Allow updating metrics.
boolean
required
Allow viewing underlying data.
'single' | 'multi'
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)
boolean
Legacy join strategy flag. Prefer using accessSettings.joinModel instead.
'DRAG_DROP' | 'CHAT'
required
Mode of metric creation (drag and drop or chat).
array
Multi-tenant table access configuration (optional).
string
Table name for tenancy configuration. Required when tableTenancySettings is provided.
string
Column name for client-level filtering. Required when tableTenancySettings is provided.

Response

string
Unique identifier for the created embed configuration.
null | object
Error object if the request failed, otherwise null.

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