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.
| Token | Scope | Where you make it | Use it for | Lives in |
|---|---|---|---|---|
| Data app API token | One data app | Data Studio > Data Apps > (app) > API tokens | Creating guest tokens, data app APIs | Your backend secrets |
| Service token | Your whole company | Settings > Developers > Tokens > Service Tokens | Data app, workspace and dashboard APIs, MCP | Your backend secrets |
| Guest token | One customer, one session | Your backend, with POST /api/v2/guest-token/create | The 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.

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