templateDashboardId
to clone filters and settings from an existing dashboard.
This endpoint creates a new dashboard. To embed an existing dashboard from your workspace, use the Create Embed Configuration endpoint instead.
Authentication
All API requests must include your API key in the Authorization header. Get your API token when creating a data app - see our data app creation guide for details. Finding your API token: For detailed instructions, see the API Token guide.Headers
Bearer token for API authentication. Use your API key from the data app.
Must be set to
application/json
for all requests.Request Body
Unique identifier for the new dashboard. Must be unique within the data app.
Client ID for the dashboard owner. Used for multi-tenant isolation and row-level security.
The name of the workspace where the dashboard will be created.
Dashboard ID to clone filters, grid margins, and layout settings from (optional).
Custom metadata for the dashboard (optional).
Allow users to create private metrics visible only to them (optional).
Access control settings for the dashboard.
The datamart name used in the embedded environment.
Allow AI pilot features.
Allow sending email reports.
Allow managing metrics.
Allow metric creation.
Allow metric deletion.
Allow layout changes to metrics.
Allow updating metrics.
Allow viewing of underlying data.
Allow creating dashboard views.
Mode of metric creation (drag and drop or chat).
List of allowed tables in embed (optional).
Client-level column for table tenancy.
Table name.
Response
The ID of the created dashboard embed configuration.
Error object if the request failed, otherwise
null
.HTTP Status Code Summary
Status Code | Description |
---|---|
200 | OK - Dashboard created successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Invalid or missing API key |
500 | Internal Server Error - Server error occurred |
Possible Errors
Code | Message | HTTP Status |
---|---|---|
WORKSPACE_ID_ERROR | Invalid workspace name | 400 |
INVALID_DATA_APP_API_KEY | Invalid Data App API key | 401 |
CLIENT_ID_ERROR | Invalid client id | 400 |
INVALID_DASHBOARD_ID | Dashboard already exists | 400 |
TEMPLATE_DASHBOARD_ERROR | Invalid template dashboard id | 400 |
DASHBOARD_CREATE_ERROR | Failed to create client dashboard | 500 |
INTERNAL_SERVER_ERROR | Internal server error | 500 |
Quick Start Guide
1
Get your API token
For detailed instructions, see the API Token guide.
2
Create a new dashboard for your client
Make a POST request with the required parameters:
3
(Optional) Use a template
To clone settings from an existing dashboard, add
templateDashboardId
:4
Generate a guest token
Use the created dashboard ID to generate a guest token for your end users. See the Guest Token API for details.
5
Embed in your application
Use the dashboard ID and guest token in your web component:
Use Cases
Multi-Tenant SaaS
Create isolated dashboards for each customer in your SaaS application.
Template-Based Creation
Use
templateDashboardId
to clone filters and settings from a master template.Dynamic Provisioning
Automatically create dashboards during customer onboarding or upgrades.
Client Isolation
Ensure data isolation with
clientId
and row-level security settings.