Skip to main content
POST
Create dashboard from spec

Authorizations

Authorization
string
header
required

Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.

Body

application/json
network_id
integer
required

The network (GET /v1/networks) whose copilot resolves the spec's sources and actions.

Example:

12

environment
enum<string>
required

Which environment of the network: its copilot's tool catalogue is used.

Available options:
dev,
staging,
prod
Example:

"prod"

spec
object
required

The dashboard spec: name, filters, sources, panels, views, actions — exactly the spec of a dashboard read.

timezone
string

IANA timezone for date presets (default UTC).

Example:

"Europe/Paris"

icon
string | null

One emoji shown before the dashboard's name (optional; change it later with PATCH /v1/dashboards/{id}). Not part of the spec.

Maximum string length: 32
Example:

"📊"

runtimeAuth
object

API key only: per-provider credentials for the test refresh, over the user's stored ones.

Response

Created and refreshed once

dashboard
object
version
object | null
spec
object | null

The version's spec: filters, sources, panels (layout: span, height, order; triggers: a stats panel's on_click, a table's row_key, cell_triggers (by column key: the cell value is a link), on_row_click, row_actions), views (what a trigger opens: kind table | stats | chart | … | form | thread | composite, title, presentation drawer | modal, context keys; a form view carries tool, fields, initial, submit_label, on_success, confirm and schema — the JSON Schema of its fields; a composite view carries blocks — data blocks of any component kind, text blocks, at most one form block with its schema — and optional tabs / default_tab), actions (toolbar buttons), tab_groups (layout only: { id, tabs: [{ id, label }], default?, strip?: card | page | none }; a panel with tab: { group, id } shows only while that tab is open) and insights ({ id, scope: { page: true } | { tab: { group, id } } | { panel }, sources, prompt }: the assistant's readings of the data, one model call each per refresh, answered under the data's insights). A trigger is { view, context } or { tab: { group, id } } (select a tab instead of opening a view); context values that are templates ("{{row.id}}", "{{row}}", "{{stat.key}}", "{{stat.value}}", "{{filters.}}") are resolved by the page before it calls the view.

filters
object
data
object | null

The latest refresh, or null when the dashboard was never refreshed.