curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app/embeds/export?embedId=embed_abc123' \
--header 'Authorization: Bearer dbn_live_abc123...' \
--output dashboard-embed_abc123.json
{
"_meta": {
"exportedAt": "2026-03-11T10:00:00.000Z",
"embedId": "embed_abc123",
"name": "Customer Analytics Embed",
"embedType": "dashboard",
"dashboardId": "sales-dashboard-1",
"embedDataAppAccessSetting": {
"isAllowEmailReports": true,
"isAllowManageMetrics": true,
"isAllowCreateDashboardView": true,
"isAllowMetricCreation": true,
"isAllowMetricDeletion": false,
"isAllowMetricLayoutChange": true,
"isAllowMetricUpdate": true,
"isAllowUnderlyingData": false,
"metricCreationMode": "DRAG_DROP",
"isIncrementalJoin": true
}
},
"data": {
"layout": [...],
"filters": [...],
"metrics": [...],
"...": "additional dashboard configuration"
}
}
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app/embeds/export?embedId=embed_abc123' \
--header 'Authorization: Bearer dbn_live_abc123...' \
--output dashboard-embed_abc123.json
{
"_meta": {
"exportedAt": "2026-03-11T10:00:00.000Z",
"embedId": "embed_abc123",
"name": "Customer Analytics Embed",
"embedType": "dashboard",
"dashboardId": "sales-dashboard-1",
"embedDataAppAccessSetting": {
"isAllowEmailReports": true,
"isAllowManageMetrics": true,
"isAllowCreateDashboardView": true,
"isAllowMetricCreation": true,
"isAllowMetricDeletion": false,
"isAllowMetricLayoutChange": true,
"isAllowMetricUpdate": true,
"isAllowUnderlyingData": false,
"metricCreationMode": "DRAG_DROP",
"isIncrementalJoin": true
}
},
"data": {
"layout": [...],
"filters": [...],
"metrics": [...],
"...": "additional dashboard configuration"
}
}
Export the dashboard and configuration behind a data app embed using a data app API token.
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app/embeds/export?embedId=embed_abc123' \
--header 'Authorization: Bearer dbn_live_abc123...' \
--output dashboard-embed_abc123.json
{
"_meta": {
"exportedAt": "2026-03-11T10:00:00.000Z",
"embedId": "embed_abc123",
"name": "Customer Analytics Embed",
"embedType": "dashboard",
"dashboardId": "sales-dashboard-1",
"embedDataAppAccessSetting": {
"isAllowEmailReports": true,
"isAllowManageMetrics": true,
"isAllowCreateDashboardView": true,
"isAllowMetricCreation": true,
"isAllowMetricDeletion": false,
"isAllowMetricLayoutChange": true,
"isAllowMetricUpdate": true,
"isAllowUnderlyingData": false,
"metricCreationMode": "DRAG_DROP",
"isIncrementalJoin": true
}
},
"data": {
"layout": [...],
"filters": [...],
"metrics": [...],
"...": "additional dashboard configuration"
}
}
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app/embeds/export?embedId=embed_abc123' \
--header 'Authorization: Bearer dbn_live_abc123...' \
--output dashboard-embed_abc123.json
{
"_meta": {
"exportedAt": "2026-03-11T10:00:00.000Z",
"embedId": "embed_abc123",
"name": "Customer Analytics Embed",
"embedType": "dashboard",
"dashboardId": "sales-dashboard-1",
"embedDataAppAccessSetting": {
"isAllowEmailReports": true,
"isAllowManageMetrics": true,
"isAllowCreateDashboardView": true,
"isAllowMetricCreation": true,
"isAllowMetricDeletion": false,
"isAllowMetricLayoutChange": true,
"isAllowMetricUpdate": true,
"isAllowUnderlyingData": false,
"metricCreationMode": "DRAG_DROP",
"isIncrementalJoin": true
}
},
"data": {
"layout": [...],
"filters": [...],
"metrics": [...],
"...": "additional dashboard configuration"
}
}
importDashboardData/api/v2/data-app/embeds/export. The old endpoint /api/v2/dataApp/embeds/export will be deprecated soon. Please update your integrations to use the new endpoint format.Authorization header. This is the same token you use for other data app embedding APIs.
Finding your API token: For detailed instructions, see the API Token guide.
Authorization: Bearer dbn_live_abc123...
Show Finding embed IDs
application/jsonattachment; filename="dashboard-{embedId}.json""dashboard" or "metric".isAllowEmailReports, isAllowManageMetrics, and other permissions.importDashboardData, and what the Create Empty Dashboard Embed API expects when you pass importDashboardData in the request body.error.code, error.message, and error.status. Possible errors include:
INVALID_REQUEST_BODY – Request validation failed (for example, missing or invalid embedId)INVALID_DATA_APP_API_KEY – Invalid or missing data app API tokenEMBED_PARAM_ERROR – Invalid or unknown embed ID for the current data appINVALID_EMBED_ID – Embed not foundINTERNAL_SERVER_ERROR – Unexpected server errorcurl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app/embeds/export?embedId=embed_abc123' \
--header 'Authorization: Bearer dbn_live_abc123...'
importDashboardData
Pass the exported data payload into the Create Empty Dashboard Embed API:
{
"dashboardId": "client-acme-analytics",
"clientId": "acme-corp-123",
"workspaceName": "analytics-workspace",
"name": "ACME Analytics Dashboard",
"isRenameDashboard": true,
"importDashboardData": exported.data,
"accessSettings": {
"datamartName": "customer-analytics",
"isAllowEmailReports": false,
"isAllowManageMetrics": true,
"isAllowCreateDashboardView": true,
"isAllowMetricCreation": true,
"isAllowMetricDeletion": false,
"isAllowMetricLayoutChange": true,
"isAllowMetricUpdate": true,
"isAllowUnderlyingData": false,
"metricCreationMode": "DRAG_DROP"
}
}