---
title: "Function useCreateDashboardApi"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/useCreateDashboardApi"
version: "65"
---

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

# Function useCreateDashboardApi

```ts
function useCreateDashboardApi(): {
  createDashboard: (
    params: CreateDashboardValues,
  ) => Promise<MetabaseDashboard>;
} | null;
```

Creates a dashboard.
Returns `null` until the SDK is fully loaded and initialized.

## Returns

\| \{
`createDashboard`: (`params`: [`CreateDashboardValues`](https://www.metabase.com/docs/latest/embedding/sdk/api/CreateDashboardValues.md)) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/sdk/api/MetabaseDashboard.md)\>;
\}
\| `null`
