Create a Datamart in “Data Studio” page. Kindly refer the below link on how to create datamarts:
Create a Datamart
Create a Workspace with Datamart connection
For more details, kindly refer the below link:
Workspace
**Create a Dashboard **
For more details, kindly refer the below link:
Create a Dashboard
Create a DataApp
For more details, kindly refer the below link:
Create a Data App
Generate API Token
Navigate to the Data App.
In the “API Token” section, generate the API token by specifying the name of company and description (optional)
API MethodsCloud Databrain:
POST https://api.usedatabrain.com/api/v2/dataApp/embed/{method_path}
Self-hosted Databrain:
POST <SELF_HOSTED_URL>/api/v2/dataApp/embed/{method_path}
Create a Dashboard
POST https://api.usedatabrain.com/api/v2/dataApp/dashboardEmbed/create
POST <SELF_HOSTED_URL>/api/v2/dataApp/dashboardEmbed/create
{ "dashboardId": "id", "clientId": "102", "templateDashboardId": "demo-sales-test-dashboard", // dashboard id to clone filters "metadata": {"created_at": "2025-09-25", "name":"lyman's dashboard", "descriptions":"created for 102 client id, it's end user dashboard embed"}, // metadata of dashboard "workspaceName": "Demo Sales API", "accessSettings": { "datamartName": "Demo Sales API Test Datamart", "isAllowAiPilot": true, "isAllowEmailReports": false, "isAllowManageMetrics": true, "isAllowMetricCreation": true, "isAllowMetricDeletion": true, "isAllowMetricLayoutChange": true, "isAllowMetricUpdate": true, "isAllowUnderlyingData": false, "isAllowCreateDashboardView": false, "metricCreationMode": "DRAG_DROP", "tableTenancySettings": [ { "clientColumn": "client id", "name": "demo_sales" } ] }}// database tenancy don't require table list
dashboardId – Unique external dashboard ID (must not already exist).
workspaceName – Must match a valid workspace linked to the API token’s company.
clientId – Identifier of the client for which the dashboard is being created.
templateId – Optional. External dashboard ID of a template to clone.
accessSettings – Required. Defines permissions and feature access for the embed.
Create Guest token by passing Client ID and DataApp Name
When you need a guest token that you want to use across dashboards and metrics. All you have to do is pass clientId, dataAppName. If expiryTime is not passed, the token will not expire.