Dashboard YAML Syntax Reference
Dashboard YAML Syntax Reference
Section titled “Dashboard YAML Syntax Reference”This reference describes the Dashboard YAML syntax, for people writing dashboards by hand and for AI-powered dashboard generation. It is split across four pages — see “Pages in this reference” below.
Overview
Section titled “Overview”A dashboard is a YAML document, separate from any workflow, made of tiles (table / stat / bar_chart / scatter / line_chart / pie_chart / funnel / heatmap / timeline / summary_card, plus static text), each backed by an existing connector data_processor or the native asset registry, and parameterized at view-time by dashboard controls (filter widgets). Dashboards use the same data_processor:/params:/join: building blocks and the same section grid/columns layout as workflows, but they are a separate document type, marked by kind: dashboard.
Core Structure
Section titled “Core Structure”kind: dashboard # Required — distinguishes this file from a workflow YAMLname: "Vendor Spend Overview"description: "Quarterly vendor spend by region"view_roles: ["finance_manager", "admin"] # Optional — company_roles allowed to view
controls: [] # Optional — filter widgets, see Dashboard Controlstiles: [] # Required, at least onelayout: # Required — placement, reuses workflow form layout sections: []subscriptions: [] # Optional — see "Subscriptions" belowkind: dashboard is required — a file without it is not treated as a dashboard.
Top-level fields
Section titled “Top-level fields”| Field | Required | Description |
|---|---|---|
kind |
Yes | Always dashboard. |
name |
Yes | Dashboard name, shown in the list and as the page title. |
description |
No | Shown under the name. |
view_roles |
No | Company roles allowed to open the dashboard, in addition to company admins and the dashboard’s creator. |
controls |
No | Filter widgets — see Dashboard Controls. |
tiles |
Yes | At least one tile — see Dashboard Tiles. |
layout |
Yes | Where each tile is placed — see Layout. |
subscriptions |
No | Scheduled email delivery — see Subscriptions. |
Pages in this reference
Section titled “Pages in this reference”| Page | Covers |
|---|---|
| Dashboard Controls | Every control type, options, defaults, derived range keys (_from/_to, _min/_max), server-side value validation |
| Dashboard Tiles | Common tile fields, all 11 tile types and their options, table column types, stat templates (kpi_badge, progress, gauge), summary_card |
| Data & Expressions | Connector and asset sources, params, joins, filter, sorting and Top-N, counts/sums/arithmetic |
This page covers the document structure, layout, subscriptions, the API and a full example.
Layout
Section titled “Layout”Reuses the exact form.layout.sections shape workflow forms already use, just pointing grid/columns cells at tile ids instead of form field names:
layout: sections: - id: overview title: "Overview" columns: - [total_spend] - [top_vendors, spend_by_region] - id: correlation title: "Correlation" columns: - [error_vs_delay]Each section has these fields:
| Field | Required | Description |
|---|---|---|
id |
Yes | Unique section id. |
title |
Yes | Heading shown above the section. |
description |
No | Text under the heading. |
grid |
One of grid / columns |
A list of rows. Each inner list is one row of tiles, placed side by side. |
columns |
One of grid / columns |
A list of columns. Each inner list is one column of tiles, stacked top to bottom. |
The two modes are transposed:
grid: # rows - [a, b, c] # row 1: a | b | c - [d] # row 2: d, full widthcolumns: # columns - [a, d] # column 1: a above d - [b] # column 2: bgrid: each row splits the width evenly between its own tiles, so a row is always filled — a row with one tile takes the full width. Rows with the same number of tiles line up underneath each other. Use it for a row of equal-sized stat cards.columns: lets each column grow independently. Use it for mixed heights, such as a short stat next to a tall table.- Width: a row or set of columns holds at most four tiles side by side. On narrow screens they stack: one per row on phones, two on tablets.
- Height (automatic): there is no size setting. A chart’s height follows its tile’s width at roughly 16:9, kept between 220 and 420 px, so wide tiles get taller charts. In a
gridrow, every tile takes the height of the tallest one: charts grow to fill it, and a stat card centres its number. Horizontal bar charts also grow with the number of categories. - Tiles left out of the layout: a tile that isn’t in any section is saved but never rendered. Studio marks it “not in layout”.
- Validation: both modes are checked for unknown tile ids.
Set display: tabs on the layout to show one section at a time behind a row of tabs (the default, sections, stacks them on one page). A section’s badge shows a count on its tab, taken from one tile — the entries of an attention_list or card_list, the rows of a table, or a stat’s number:
layout: display: tabs sections: - id: overview title: "Overview" badge: { tile: attention } grid: - [payment_status, coming_to_you] - [attention] - id: payments title: "Payments" grid: - [payments]A badge of 0 is not shown. Adding ?tab=<section id> to the dashboard’s address opens that tab, and a button with tab: <section id> switches to it.
Subscriptions (Scheduled Delivery)
Section titled “Subscriptions (Scheduled Delivery)”Runs on the given cron schedule, executes every tile in the dashboard, and emails a static HTML digest to the subscription’s recipients. Mail clients strip chart graphics, so every tile is rendered as text or a table:
| Tile | In the email |
|---|---|
table |
An HTML table of the first 50 rows, with the full data attached as a CSV |
stat |
The formatted value, with its change (kpi_badge) or “x% of target” (progress) |
bar_chart, line_chart, scatter, pie_chart, heatmap |
A data table of the chart’s values |
funnel |
A table of stages, values and % of the first stage |
timeline |
A table of time, event and detail |
text |
The content as plain paragraphs |
summary_card |
The number and caption, the boxes as coloured text, the highlighted item and the button as links |
Each tile’s label and description head its block.
Each recipient only receives the tiles they are allowed to see:
- Being listed as a recipient counts as access to the dashboard, so a tile without its own
view_rolesgoes to every recipient. - A tile with its own
view_rolesgoes only to recipients whose company roles match it (plus company admins and the dashboard’s creator). - Tiles whose data depends on who is looking — a
from_viewerparam, orsource: {type: asset}— are run separately for each employee recipient, so everyone gets their own data. - A recipient added by bare email address (no employee record) only receives tiles with no
view_rolesof their own and no per-viewer data. - A recipient left with no visible tiles is not sent an email.
subscriptions: - name: "Monday Morning Digest" schedule: "0 8 * * 1" # same cron syntax as workflow triggers recipients: - role: "finance_manager" # same recipient shape as notification steps (role | email) control_values: date_from: "2026-01-01" # fixed control values for the scheduled run date_to: "2026-01-31"recipients requires at least one entry, each with role or email. control_values fixes the value of each control for the scheduled run, using the same value shapes as the viewer (a list for a multi-value select, {min, max} for a number range). It is validated at save time: an unknown control name or an illegal value is an error. A control left out of control_values uses its own default.
In the viewer
Section titled “In the viewer”- Controls bar: most controls wait for Apply. Date-range preset tabs and toggles apply on click, and Clear resets everything. See Viewer behaviour.
- Loading: every tile loads independently, so one slow or failing tile doesn’t block the others. Identical concurrent fetches (same data source and parameters) are made only once.
- Held-back tiles: a tile that reads a control with no value and no default shows “Fill dashboard controls (…) to view this tile” instead of calling the connector.
- Errors: a tile whose fetch fails shows the error inside the tile. A tile blocked by the monthly connector-call limit shows a plan notice instead.
Version history
Section titled “Version history”Every save that changes a dashboard is kept as a new version. In Dashboard Studio, Save asks for an optional note describing the change, and History lists each version with its number, time, who saved it and the note. Expand a version to see its YAML.
Restore loads an older version into the editor as unsaved changes. Viewers keep seeing the current version until you Save, which adds the restored content as a new version, so no version is ever overwritten. Saving without any change doesn’t add a version. Version history is available to people who can edit the dashboard.
Export
Section titled “Export”| Export | Where | What |
|---|---|---|
| CSV per tile | The download icon on a tile, or POST …/tiles/{tile_id}/execute?format=csv |
The tile’s rows, with the current control values. Available for every tile type that produces rows. Not available for stat, summary_card or text. |
| Excel workbook | Export to Excel on the dashboard | One sheet per table tile, named after the tile’s label, with the current control values. |
All paths are under /dashboards.
| Method | Path | Description |
|---|---|---|
GET |
/dashboards/ |
List dashboards visible to the current employee. |
GET |
/dashboards/{uuid} |
Fetch one dashboard, including its parsed definition. |
POST |
/dashboards/ |
Create — body: { "yaml_content": "<raw YAML>" }. |
POST |
/dashboards/validate |
Validate YAML without saving — the same checks as create. |
POST |
/dashboards/generate |
Generate (or revise) a dashboard with AI from a description — returns YAML for review, saves nothing. |
POST |
/dashboards/preview-tile-data |
Studio’s debug preview — fetch a tile’s raw connector response and rows (after row_path and joins) without saving anything. |
PUT |
/dashboards/{uuid} |
Update — same body shape. Both POST and PUT accept an optional version_comment stored on the new version. |
GET |
/dashboards/{uuid}/versions |
List saved versions, newest first (the newest is the current one). Editors only. |
GET |
/dashboards/{uuid}/versions/{n} |
One version, including its yaml_content. Editors only. |
DELETE |
/dashboards/{uuid} |
Soft-delete. |
POST |
/dashboards/{uuid}/tiles/{tile_id}/execute |
Execute one tile — body: { "control_values": {...} }. Each value is validated against its control’s type, options and bounds (see Server-side validation); an illegal value returns 400, and keys that aren’t a control on the dashboard are ignored. Add ?format=csv to export the tile’s rows as CSV (any tile type that produces rows — not stat, summary_card or text). |
POST/PUT accept only raw yaml_content — name/description/view_roles are read back out of the parsed document after validation, so the stored row can never drift from what the YAML actually says.
Access control:
- View: company admin, OR the dashboard’s creator, OR an employee whose
company_rolesintersectview_roles. - Write (
POST/PUT/DELETE): company admin, OR the dashboard’s creator only. - Per-tile view: the same rule, narrowed to a tile’s own
view_roleswhen it sets one (falling back to the dashboard’sview_rolesotherwise).GET /dashboards/{uuid}omits any tile the viewer can’t see fromdefinition.tilesentirely;POST .../tiles/{tile_id}/execute403s if called for one directly.
Full Example
Section titled “Full Example”kind: dashboardname: "Vendor Spend Overview"description: "Quarterly vendor spend by region"view_roles: ["finance_manager", "admin"]
controls: - name: date_from label: "From" type: date - name: date_to label: "To" type: date - name: timeframe label: "Timeframe" type: date_range_preset options: - { label: "Last 7 Days", value: "last_7_days" } - { label: "Last 30 Days", value: "last_30_days" } - { label: "This Quarter", value: "this_quarter" }
tiles: - id: top_vendors type: table label: "Top Vendors This Quarter" data_processor: source_name: "Vendor Spend SQL" params: - name: date_from from_control: date_from - name: date_to from_control: date_to join: - field: vendor_id source_name: "Vendor Master" on: id pick: vendor_name: name vendor_region: region_code row_path: "data" columns: - { label: "Vendor", path: "vendor_name" } - { label: "Region", path: "vendor_region" } - { label: "Total Spend", path: "totals.amount" }
- id: net_spend_by_region type: bar_chart label: "Net Spend by Region (after refunds)" data_processor: source_name: "Vendor Spend SQL" row_path: "data" x: "vendor.region.code" y: "$sum(rows.totals.amount) - $sum(rows.totals.refund_amount)"
- id: total_spend type: stat label: "Total Spend" template: kpi_badge data_processor: source_name: "Vendor Spend SQL" row_path: "data" settings: layout: badge format: currency metric: "totals.amount" agg: sum compare_metric: "totals.prior_period_amount" compare_label: "vs last month"
- id: server_baselines type: table label: "Production Server Baselines" source: type: asset category: server filter: "properties.tier = 'production'" columns: - { label: "Name", path: "name" } - { label: "OS Version", path: "properties.os_version" }
- id: error_vs_delay type: scatter label: "Accuracy Errors vs. SLA Bottlenecks" data_processor: source_name: "Audit Findings SQL" row_path: "data" x: "error_rate" y: "sla_delay_hours" size: "dollar_risk" point_label: "vendor_name" quadrants: x_threshold: 5.0 y_threshold: 24 labels: high_high: "Critical Process Failure" low_low: "Healthy"
- id: approved_vs_rejected_trend type: line_chart label: "Approved vs. Rejected, by Day" data_processor: source_name: "Approvals per Day" row_path: "data" x: "day" series: - { label: "Approved", path: "approved" } - { label: "Rejected", path: "rejected" }
layout: sections: - id: overview title: "Overview" columns: - [total_spend] - [top_vendors, net_spend_by_region] - id: assets title: "Assets" columns: - [server_baselines] - id: correlation title: "Correlation" columns: - [error_vs_delay] - id: trends title: "Trends" columns: - [approved_vs_rejected_trend]
subscriptions: - name: "Monday Morning Digest" schedule: "0 8 * * 1" recipients: - role: "finance_manager" control_values: date_from: "2026-01-01" date_to: "2026-01-31"