Create API key from Databrain's dashboard
that should be passed in the headers in these requests.Quick start (simple use case):
When you need a guest token that you want to use across dashboards and metrics, all you have to do is passclientId
, dataAppName
. If expiryTime
is not passed, the token will not expire.
Cloud Databrain:
Self-hosted Databrain:
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer API TOKEN |
Request Body
Name | Type | Description |
---|---|---|
dataAppName* | String | Your Data App Name |
clientId* | String | Client ID for whom this guest token is generated. ("clientId": "None" if no tenancy selected) |
params | Object | Additional Params: dashboard, appFilters |
expiryTime | Number | In milliseconds |
datasourceName | String | Datasource name from Data Studio (important in case of multi-datasource embed setup) |
Request Body Examples:
Simple Request Body:
Request Body with App Level Metric Filter:
App filter
A metric level filter designed specifically for controlling access to individual metrics. Unlike general RLS settings, it restricts access without requiring end user input or control.
Dashboard App Filters:
Request Body with Dashboard filters:
"name"
, "country"
, "timePeriod"
, and "price"
are Dashboard App filters.When you disable the
isShowOnUrl
, the filter will not be visible to end users as search params on URL.
Datasource [Multi Datasource connection]:
datasourceName
is available in app data studio tab.
Hide Dashboard Filters:
To hide dashboard filters in an embedded dashboard:Dashboard Permissions
To enable or disable few dashboard permissions from backend:Error Codes:
'AUTHENTICATION_ERROR'
'INVALID_REQUEST_BODY'
'CLIENT_ID_ERROR'
'WORKSPACE_ID_ERROR'
'DASHBOARD_PARAM_ERROR'
'APP_FILTER_PARAM_ERROR'
'RLS_SETTINGS_PARAM_ERROR'
'INTERNAL_SERVER_ERROR'