Skip to main content
  1. Create a Datamart
Create a Datamart in “Data Studio” page. Kindly refer the below link on how to create datamarts:

Create a Datamart

  1. Create a Workspace with Datamart connection
For more details, kindly refer the below link:

Workspace

  1. **Create a Dashboard **
For more details, kindly refer the below link:

Create a Dashboard

  1. Create a DataApp
For more details, kindly refer the below link:

Create a Data App

  1. 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 Methods Cloud Databrain:
Self-hosted Databrain:
  1. Create a Dashboard
  • 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.
  1. 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.

Generating GUEST TOKEN for your Dashboard

Headers

Request Body

Example Response: 200 OK “token”: ”…”

When the response is successful it returns a token that you can pass to the frontend.

Simple Request Body

Once you acquire the guest token, you can seamlessly pass it to your frontend application, where it can be integrated with the web component
  • The created dashboard will mimic the filter behavior of the cloned dashboard if a Template ID is provided.
  • Once the dashboard is created, users can start building metrics.