> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboard for Multiple Clients

> One universal dynamic dashboard for multiple clients

1. **Set up multi-data source workspace with one universal dynamic dashboard**

Kindly refer the below link:

<Card title="Multi Datasource Workspace" description="Steps to Set Up and Use Multi-Datasource Switching in Your Dashboard." href="https://docs.usedatabrain.com/guides/workspace/multi-datasource-workspace" />

2. **Embedding**

When embedding the dashboard for a client:

* Generate a **guest token** via DataBrain’s API.
* Pass the client's unique ID in the token payload.
* DataBrain will automatically scope all metric queries based on the passed Client ID.

To obtain a guest token from DataBrain, utilize our REST API from your backend system.

### Cloud version:

```bash theme={"dark"}
Post: <https://api.usedatabrain.com/api/v2/guest-token/create>
```

### Self-hosted version:

```bash theme={"dark"}
Post: <SELF_HOSTED_URL>/api/v2/guest-token/create
```

### Simple Request Body:

```json theme={"dark"}
{
  "clientId": "id", // "None" if no tenancy available
  "dataAppName": "dataappname",
  "datasourceName": "data source name" // only for multi-datasource embed setup
}
```

This ensures that the same dashboard shows different, correct data for each client — securely and efficiently.
