Skip to Content

Additional Resources

Pick the right token

Know which of the three Databrain tokens to use for a task, and where to make it.

Databrain has three kinds of token. Two are secrets for your servers. One goes to the browser.

TokenScopeWhere you make itUse it forLives in
Data app API tokenOne data appData Studio > Data Apps > (app) > API tokensCreating guest tokens, data app APIsYour backend secrets
Service tokenYour whole companySettings > Developers > Tokens > Service TokensData app, workspace and dashboard APIs, MCPYour backend secrets
Guest tokenOne customer, one sessionYour backend, with POST /api/v2/guest-token/createThe token attribute of <dbn-dashboard> and <dbn-metric>The browser

Every token is sent as Authorization: Bearer <token>, except the guest token, which you set on the element.

API tokens tab of a data app with the Generate API token button highlighted and one token, Production backend.
A data app's API tokens tab, where you make a data app API token.

You see the full API token and service token only once, when you create or rotate them.

Next

On this page