---
title: "Type Alias SdkDashboardEntityPublicProps"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/SdkDashboardEntityPublicProps"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Type Alias SdkDashboardEntityPublicProps

```ts
type SdkDashboardEntityPublicProps =
  | {
      dashboardId: SdkDashboardId | null;
      token?: never;
    }
  | {
      dashboardId?: never;
      token: SdkEntityToken | null;
    };
```

## Type Declaration

```ts
{
  dashboardId: SdkDashboardId | null;
  token?: never;
}
```

| Name          | Type                                                  | Description                                                                                                                                                                                                                                                                                                                                  |
| :------------ | :---------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `dashboardId` | [`SdkDashboardId`](https://www.metabase.com/docs/latest/embedding/sdk/api/SdkDashboardId.md) \| `null` | The ID of the dashboard. <br/> This is either: <br/> - the numerical ID when accessing a dashboard link, i.e. `http://localhost:3000/dashboard/1-my-dashboard` where the ID is `1` <br/> - the string ID found in the `entity_id` key of the dashboard object when using the API directly or using the SDK Collection Browser to return data |
| `token?`      | `never`                                               | -                                                                                                                                                                                                                                                                                                                                            |

```ts
{
  dashboardId?: never;
  token: SdkEntityToken | null;
}
```

| Name           | Type                                                  | Description                            |
| :------------- | :---------------------------------------------------- | :------------------------------------- |
| `dashboardId?` | `never`                                               | -                                      |
| `token`        | [`SdkEntityToken`](https://www.metabase.com/docs/latest/embedding/sdk/api/SdkEntityToken.md) \| `null` | A valid JWT token for the guest embed. |
