In the “API Token” section, generate the API token by specifying the name of company and description (optional)
API MethodsCloud Databrain:
Copy
POST https://api.usedatabrain.com/api/v2/dataApp/embed/{method_path}
Self-hosted Databrain:
Copy
POST <SELF_HOSTED_URL>/api/v2/dataApp/embed/{method_path}
Create a Dashboard
Copy
POST https://api.usedatabrain.com/api/v2/dataApp/dashboardEmbed/create
Copy
POST <SELF_HOSTED_URL>/api/v2/dataApp/dashboardEmbed/create
Copy
{ "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.