Dashboards API
Dashboards are canvases of visualizations on a 12-column grid, with shared filters and workspace-wide categories. The same JSON is used in the web app and in the desktop app.
Building dashboards in the app? The full guide — edit mode, filters, saved filters, cross-filtering, drill-down links, sharing — is Dashboards, and the chart types and their options are in Chart Types. This page covers the JSON behind them.
The definition object is written and read by the app; the sections below describe what the app
writes. On save, Engeene checks only its layout geometry and visualization ids. The top-level fields
(id, owner, viewAccess, editAccess, shared, category, createdAt, updatedAt) are
maintained by Engeene.
Naming conventions
- No abbreviations in property names. Use full words:
visualization(notviz),category(notcategoryId). - Reference fields are named after the resource. A top-level or layout property that carries the id of another resource has no
Idsuffix:category,visualization,dataset,model. - Ids. The app generates UUIDs for dashboards and categories. A visualization id may be any string of letters, digits,
_and-, at most 128 characters; anything else is refused on save withinvalid_visualization_id. - Fully qualified property names. Always
dataset.property(e.g.bookings.bookedAt). A measure, filter or sort names it under the keyproperty; a save that usescolumninstead is refused with400(retired_property_key). - Title Case enum values. Aggregations (
Sum,Count,Average, …), filter types (Attribute In,Measure In Range), sort directions (Ascending,Descending) and chart types are spelled exactly as shown and are case-sensitive.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /dashboards/list (alias /dashboards) |
List dashboards visible to the caller (own + shared in workspace, on the data models the caller's role can access) — summaries without definition unless include=definition is passed. See Listing. |
| POST | /dashboards |
Create a new dashboard. |
| PUT | /dashboards/{id} |
Update name, definition, view/edit access, owner, and/or category. Only the fields you send are changed. |
| DELETE | /dashboards/{id} |
Delete a dashboard. Owner or admin only. |
| GET | /dashboards/categories |
List all workspace-wide categories. |
| POST | /dashboards/categories |
Create a category. |
| PUT | /dashboards/categories/{id} |
Rename a category. |
| DELETE | /dashboards/categories/{id} |
Delete a category. Affected dashboards become uncategorized. |
Permissions: explore:view to read, explore:edit to mutate.
Listing
The list answers summaries by default — every field of the dashboard object
except definition, plus the workspace's categories:
{ "dashboards": [ { "id": "8f7e…", "name": "Bookings Overview", "model": "travel", "category": null, "…": "…" } ],
"categories": [ { "id": "c1", "name": "Sales" } ] }
Two query parameters narrow or widen it:
| Parameter | Effect |
|---|---|
include=definition |
Every row carries its definition (the full dashboard object). |
id=<dashboardId> |
Only that dashboard — an empty dashboards array when it does not exist or you cannot view it — and no categories. Combine with include=definition to fetch one dashboard in full. |
curl -H "Authorization: Bearer $TOKEN" \
"https://<workspace>.<region>.engeene.com/dashboards/list?id=8f7e3a92-7cf1-4b6a-9d81-2e4cf1d0a2b1&include=definition"
Every variant carries a weak ETag; send it back as If-None-Match to get an empty 304 when
nothing you can see has changed.
Dashboard object
{
"id": "8f7e3a92-7cf1-4b6a-9d81-2e4cf1d0a2b1",
"name": "Bookings Overview",
"model": "travel",
"owner": "user-uuid-of-owner",
"shared": true,
"own": true,
"canEdit": true,
"builtin": false,
"viewAccess": { "mode": "everybody", "roles": [] },
"editAccess": { "mode": "roles", "roles": ["Analyst"] },
"category": "11111111-2222-3333-4444-555555555555",
"definition": {
"version": 1,
"model": "travel",
"filters": [],
"layout": [],
"visualizations": {}
},
"createdAt": "2026-04-18T09:12:34Z",
"updatedAt": "2026-04-19T14:55:02Z"
}
| Field | Type | Purpose |
|---|---|---|
id |
UUID | Stable dashboard identifier. |
name |
string | Human-readable name. |
model |
string | Target model id. |
owner |
string | User id of the dashboard owner. |
viewAccess |
object | Who may view: { "mode": "private" | "everybody" | "roles", "roles": [...] }. |
editAccess |
object | Who may edit (content, and narrowing the sharing): same shape as viewAccess. Reassigning the owner or widening the sharing stays with the owner and workspace admins. |
shared |
boolean | true when viewAccess.mode is not private. |
own |
boolean | Server-computed per request: true when the caller owns this dashboard. |
canEdit |
boolean | Server-computed per request: true when the caller may edit this dashboard (owner / admin / edit-shared). The caller must ALSO hold explore:edit for a write to succeed. Always false for built-in dashboards. |
builtin |
boolean | true for curated, read-only dashboards seeded into the workspace. No user — not even the owner or an admin — may edit, re-share, or delete them; PUT/DELETE return 403. The UI hides the edit/delete affordances and shows a built-in badge. |
category |
UUID or null |
Category the dashboard belongs to, or null for uncategorized. |
definition |
object | Full layout and visualization config. Opaque to the server. |
createdAt, updatedAt |
ISO-8601 UTC timestamps | Written by the store. |
Access model
Each dashboard carries two independent access descriptors. Each is one of:
private— only the owner (and workspace admins).everybody— every authenticated user in the workspace.roles— anyone holding at least one role inroles(owner/admin always).
canView = owner OR admin OR viewAccess allows OR editAccess allows (edit implies view). canEdit = owner OR admin OR editAccess allows; a write additionally requires the global explore:edit permission ("both required"). Built-in (curated) dashboards are read-only for everyone, including the owner and workspace admins.
mode is case-sensitive. Only the exact lowercase tokens private, everybody and roles are recognised; any other spelling ("Private", "EVERYBODY", a padded " roles ") or a missing/unknown mode is read as private, so a malformed descriptor never grants access. Role names inside roles are matched case-insensitively, trimmed, and de-duplicated; a roles descriptor whose list ends up empty (missing, not an array, or only blanks) collapses to private.
The caller may send name, model, viewAccess, editAccess, owner, category, definition on create, and any subset on update. A bare shared boolean is accepted as a shorthand for viewAccess (everybody / private). Reassigning owner requires a user id that exists in the workspace, and only the current owner or a workspace admin may do it. Likewise only the owner or an admin may widen viewAccess / editAccess (grant access to anyone the current descriptor does not admit); other editors may narrow them. Both refusals are 403. Re-sending the current owner or an unchanged descriptor is not a change.
category semantics on update:
- Key omitted → unchanged.
"category": null→ uncategorize."category": "<unknown-uuid>"→ silently coerced tonull(prevents cross-workspace references).
Definition object
The full layout and visualization state of a dashboard.
{
"version": 1,
"model": "travel",
"filters": [],
"layout": [],
"visualizations": {}
}
| Field | Type | Purpose |
|---|---|---|
version |
integer | Schema version of the definition. Currently 1. |
model |
string | Default model. Each visualization can override it. |
filters |
array | Dashboard-wide filters merged into every visualization's query. |
layout |
array | Ordered list of rows; each row owns the cells it displays. |
visualizations |
object | Map keyed by visualization id → visualization object. |
Layout — 12-column grid
Each entry of layout is a row. Cells reference visualizations by id via the visualization field and place them with 1-based colStart + colSpan.
{
"layout": [
{
"rowHeight": 300,
"cells": [
{ "visualization": "d28c7e1f-6d70-4e06-9e4b-2f8c6a0d1a01", "colStart": 1, "colSpan": 6 },
{ "visualization": "f3b2a9d1-4c8e-4a7b-9f5d-7e1c2a6f8b12", "colStart": 7, "colSpan": 6 }
]
},
{
"rowHeight": 400,
"cells": [
{ "visualization": "ab345678-90ab-cdef-1234-567890abcdef", "colStart": 1, "colSpan": 12 }
]
}
]
}
colStart and colSpan must be whole numbers from 1 to 12, and rowHeight a number of pixels from 0 to 10000 (0 or absent means the default, 300). All three must be JSON numbers — a numeric string is refused. A save that breaks these rules is answered 400 with code invalid_layout_geometry and a field naming the offending value. A cell may also carry "fitHeight": true to size it to the browser window instead of the row height.
Sections. A layout entry may instead be a section — a heading that splits the dashboard vertically. It holds no cards:
{ "section": { "id": "s-totals", "name": "Totals", "screenBreak": true }, "cells": [] }
id is required (letters, digits, _ and -, unique among the dashboard's sections) — it is how each viewer's collapsed sections are remembered. name is optional (at most 200 characters); a section without one is drawn as a plain line. screenBreak: true marks at most one section per dashboard: on a computer or tablet the rows above it are fitted to the window's height, so that section starts the second screen. A save that breaks these rules is answered 400 with code invalid_dashboard_section and a field naming the offending part.
Empty rows are pruned when their last cell is removed. On screens narrower than 700px every cell is forced full-width and resize handles are hidden.
Filters
Dashboard-level (definition.filters) and per-visualization (visualization.filters) entries share one shape. A visualization's own filter replaces a dashboard filter on the same property.
Attribute filter — type is Attribute In or Attribute Not In; values is a comma-separated list of the attribute's values (write \, for a comma inside a value). An empty string means "all values":
{ "type": "Attribute In", "property": "bookings.originCountry", "values": "US,DE,JP" }
Measure filter — values is minimum,maximum; leave either side empty for an open range:
{ "type": "Measure In Range", "property": "bookings.total", "values": "100,1000" }
{ "type": "Measure In Range", "property": "bookings.rating", "values": "4," }
Time filter — mode selects the kind of period:
{ "type": "time", "property": "bookings.bookedAt", "mode": "lastN", "granularity": "day", "count": 30, "excludeCurrent": true }
{ "type": "time", "property": "bookings.bookedAt", "mode": "staticRange", "from": "2026-01-01", "to": "2026-03-31" }
mode |
Meaning | Fields |
|---|---|---|
allTime |
No restriction | — |
lastN |
The last N complete periods | granularity, count, excludeCurrent (set false to include the current, partial period) |
nextN |
The next N complete periods | granularity, count, excludeCurrent |
thisPeriod |
The current period | granularity |
toDate |
From the start of the current period until now | granularity |
staticRange |
Fixed dates | from, to (ISO 8601 date or date-time) |
relativeRange |
A range of periods relative to the current one | granularity, fromOffset, toOffset (-1 = previous period, 0 = current) |
granularity is one of minute, hour, day, week, month, quarter, year. Any two time filters on the same property clash regardless of mode.
Visualization JSON format
Each entry of definition.visualizations is a map key (the visualization id) pointing at a visualization object. The object also carries the same id in its id field so it is self-describing when serialised independently.
Common fields
{
"id": "d28c7e1f-6d70-4e06-9e4b-2f8c6a0d1a01",
"title": "Total bookings by country",
"type": "Chart",
"model": "travel",
"dataset": "bookings",
"filters": []
}
| Field | Type | Required | Purpose |
|---|---|---|---|
id |
string | yes | Matches the visualizations map key. Letters, digits, _ and -, at most 128 characters. |
title |
string | no | Shown in the header; omit for a headerless card. |
type |
enum | yes | One of the visualization types. |
model |
string | conditional | Overrides the dashboard default. Required only when type runs a query. |
dataset |
string | conditional | Required when type runs a query (Table, Chart, List, Highlight). |
filters |
array | no | Per-visualization filters, same shape as dashboard filters. |
Visualization types
type |
Shown in the app as | Runs a query? |
|---|---|---|
Table |
Aggregation | Yes |
Chart |
Chart — see Chart for the chart types |
Yes |
Highlight |
Highlight | Yes — a big-number card |
List |
List | Yes — a row listing |
Markdown |
Text | No |
Image |
Image | No |
Iframe |
Embedded Page | No |
Explanation |
Explanation | No — Ask AI summarises other visualizations, see Explanation |
Visualizations that run a query use the vocabulary of the query endpoint:
measures, segments and filters, each naming a fully qualified dataset.property under property.
Per-type extras follow.
Table
{
"id": "d28c7e1f-6d70-4e06-9e4b-2f8c6a0d1a01",
"title": "Bookings by country",
"type": "Table",
"model": "travel",
"dataset": "bookings",
"metrics": [
{ "property": "bookings.total", "aggregation": "Sum", "style": { "customName": "Revenue", "format": "compact-1" } },
{ "property": "bookings.bookingId", "aggregation": "Count", "style": { "customName": "Bookings" } },
{ "computed": true, "expression": "$0 / $1", "label": "Revenue per booking", "style": { "format": "decimal-1" } }
],
"segments": ["bookings.originCountry", "time:bookings.bookedAt:MONTH"],
"topNConfig": {
"metric": { "property": "bookings.total", "aggregation": "Sum" },
"direction": "Descending",
"limit": 10,
"includeOther": true
},
"segmentStyles": {
"bookings.originCountry": { "onClick": "filter" }
},
"filters": []
}
metrics[]— ordered. Each entry names a fully qualifiedpropertyand anaggregation(Sum,Minimum,Maximum,Average,Median,Percentile, … on a measure;Counton an attribute, which always counts distinct values — count rows withCounton the dataset's ID property). A computed entry carries"computed": true, anexpressionand alabelinstead; see Computed Measures. A measure may carry its ownconditions— filters in the same shape as above that apply to that measure only.segments[]— fully qualified attribute properties, and time breakdowns writtentime:dataset.property:GROUPING.GROUPINGis one of the continuous calendar groupingsMINUTE,HOUR,DAY,WEEK,MONTH,QUARTER,YEAR(each key is one real period and carries its year, so a two-year range gives 24 monthly segments in chronological order) or the cyclicalHOUR_OF_DAY,DAY_OF_WEEK,WEEK_OF_YEAR,MONTH_OF_YEAR,QUARTER_OF_YEAR(every year folds onto the same small set — a seasonality breakdown, not a trend).topNConfig— optional. Keeps the toplimitsegments ordered bymetric;includeOtherrolls the rest into one "(Other)" row.segmentStyles— per-property options for this visualization only.onClickisnone(default),filter(clicking a value filters the dashboard),openDashboard(withonClickDashboardId) oropenUrl(withonClickUrl, where{dataset.property}is replaced by the clicked value).hideMissing: trueleaves out the segment for rows with no value.
A measure's style holds its presentation: customName (the label shown), format (for example integer, decimal-1, compact-1, percent-1), color, and the same onClick options as a segment.
Chart
All Table fields, plus chart-only options:
{
"id": "f3b2a9d1-4c8e-4a7b-9f5d-7e1c2a6f8b12",
"title": "Revenue trend",
"type": "Chart",
"chartType": "Cartesian",
"model": "travel",
"dataset": "bookings",
"metrics": [
{
"property": "bookings.total",
"aggregation": "Sum",
"style": { "customName": "Revenue", "chartType": "Bar", "color": "#4f8bf9" }
}
],
"segments": ["time:bookings.bookedAt:MONTH"],
"chartConfig": {
"legend": "None",
"orientation": "Vertical"
},
"filters": []
}
chartType is one of:
| Type in the app | chartType |
Best for |
|---|---|---|
| Line, Bar and Area | Cartesian |
Trends and comparisons; each measure picks bar, line or area in its style.chartType (Bar / Line / Area) |
| Scatter, Bubble | Scatter |
Relationships between two or three numbers |
| Pie | Pie |
Share of a total. Slices come from one measure split by a segmentation, or from several measures — see the one-click switch |
| Radar | Radar |
A few categories compared across several measures |
| Bullet | Bullet |
One number against a target and qualitative ranges. Band values are each band's upper edge |
| Funnel | Funnel |
Steps that narrow — visitors to sign-ups to paid. The order of the steps is yours |
| Waterfall | Waterfall |
How parts add up to a total — revenue, minus costs, to profit. Steps are measures or one segmentation's values |
| Heatmap | Heatmap |
Two-dimensional density |
| Treemap | Treemap |
Nested share of a total |
| Geographic Points | GeoPoints |
Locations on a map, optionally with origin–destination lines |
| Geographic Areas | GeoArea |
Values shaded by country or region |
Switching type keeps the measures, segments and filters — only the drawing changes. Explore and dashboards draw the same charts from the same settings, and a shared Explore link carries them too, so a chart opens identically everywhere.
Chart settings describe the picture, not the query, so the query endpoint has no fields for them. They are saved with the visualization:
- Per measure — colour, sub-type, axis, value labels and markers in the measure's
styleobject. - Per chart — orientation, legend, axes, stacking, pie, funnel and bullet options and sort order
in
chartConfig, for examplelegend,orientation,stackBy,showTotals,footerRows(a table's footer rows:[{"aggregation": "Total"}, {"aggregation": "Average", "columns": [{"metric": "metric:Sum:orders.revenue", "aggregation": "None"}]}]— leave it out for the one totals row).orientationisVerticalorHorizontalandlegendone ofTop,Bottom,Left,Right,Title,AutoorNone, spelled exactly so (Autohides the legend for one measure by at most one segment and otherwise puts it in the title line; a report draws it on top, and only when there are several series): any other spelling (horizontal,none) is drawn as the default — vertical, legend on top — on the dashboard and in its emailed and Slack reports alike. - Value colours — a colour pinned to one value of a breakdown, so it reads the same everywhere. See Value colours.
- Measure roles — where a chart type has slots rather than a list (the scatter axes, the bullet chart's Value / Target / Range Band, the Highlight card slots), each measure carries its role.
A chart draws one bar, slice or point per group. Grouping by a property with very many values shows a
short message instead of a chart: add a topNConfig or a narrower filter — a chart never quietly
drops categories to fit.
Highlight
A big-number card. It takes metrics and filters like a Table, with an empty segments list; each measure names the slot it fills in highlightSlot (main, left, right, topLeft, topRight, bottomLeft, bottomRight).
List (rows)
{
"id": "ab345678-90ab-cdef-1234-567890abcdef",
"title": "Recent bookings",
"type": "List",
"model": "travel",
"dataset": "bookings",
"selectedColumns": [
"bookings.bookedAt",
"bookings.originCountry",
"bookings.destinationCountry",
"bookings.total"
],
"sorts": [
{ "property": "bookings.bookedAt", "direction": "Descending" }
],
"filters": []
}
A List shows individual rows — no metrics or segments. direction is Ascending or Descending.
Iframe
{
"id": "e1d0c9b8-7a65-4321-9abc-def012345678",
"title": "Live demo",
"type": "Iframe",
"iframeUrl": "https://example.com/embed/dashboard/123"
}
Sandboxed with allow-scripts allow-forms allow-popups. No query is issued.
Markdown
{
"id": "c0ffee00-dead-beef-cafe-0123456789ab",
"title": "Notes",
"type": "Markdown",
"content": "## Targets\n\n- Q2 revenue: **$1.2M**\n- Conversion: 4.5%"
}
content is rendered as Markdown; no query is issued.
Categories
Category records are workspace-wide:
{
"id": "11111111-2222-3333-4444-555555555555",
"name": "Finance",
"createdAt": "2026-04-18T09:12:34Z",
"updatedAt": "2026-04-19T14:55:02Z"
}
POST /dashboards/categories body:
{ "name": "Finance" }
Names are unique within a workspace, case-insensitive. Deleting a category clears category on every dashboard pointing at it; the dashboards themselves are kept.
Complete example
A two-row, three-visualization dashboard with a shared 90-day time filter:
{
"name": "Bookings Overview",
"model": "travel",
"shared": true,
"category": null,
"definition": {
"version": 1,
"model": "travel",
"filters": [
{ "type": "time", "property": "bookings.bookedAt", "mode": "lastN", "granularity": "day", "count": 90, "excludeCurrent": true }
],
"layout": [
{
"rowHeight": 320,
"cells": [
{ "visualization": "d28c7e1f-6d70-4e06-9e4b-2f8c6a0d1a01", "colStart": 1, "colSpan": 8 },
{ "visualization": "f3b2a9d1-4c8e-4a7b-9f5d-7e1c2a6f8b12", "colStart": 9, "colSpan": 4 }
]
},
{
"rowHeight": 380,
"cells": [
{ "visualization": "ab345678-90ab-cdef-1234-567890abcdef", "colStart": 1, "colSpan": 12 }
]
}
],
"visualizations": {
"d28c7e1f-6d70-4e06-9e4b-2f8c6a0d1a01": {
"id": "d28c7e1f-6d70-4e06-9e4b-2f8c6a0d1a01",
"title": "Revenue by country",
"type": "Chart",
"chartType": "Cartesian",
"model": "travel",
"dataset": "bookings",
"metrics": [
{
"property": "bookings.total",
"aggregation": "Sum",
"style": { "customName": "Revenue", "chartType": "Bar", "color": "#4f8bf9" }
}
],
"segments": ["bookings.originCountry"],
"segmentStyles": { "bookings.originCountry": { "onClick": "filter" } },
"chartConfig": { "legend": "None", "orientation": "Horizontal" },
"filters": []
},
"f3b2a9d1-4c8e-4a7b-9f5d-7e1c2a6f8b12": {
"id": "f3b2a9d1-4c8e-4a7b-9f5d-7e1c2a6f8b12",
"title": "Bookings",
"type": "Table",
"model": "travel",
"dataset": "bookings",
"metrics": [
{ "property": "bookings.bookingId", "aggregation": "Count", "style": { "customName": "Bookings" } }
],
"segments": ["bookings.status"],
"filters": []
},
"ab345678-90ab-cdef-1234-567890abcdef": {
"id": "ab345678-90ab-cdef-1234-567890abcdef",
"title": "Recent bookings",
"type": "List",
"model": "travel",
"dataset": "bookings",
"selectedColumns": [
"bookings.bookedAt",
"bookings.originCountry",
"bookings.destinationCountry",
"bookings.total"
],
"sorts": [{ "property": "bookings.bookedAt", "direction": "Descending" }],
"filters": []
}
}
}
}
Copying a dashboard between workspaces
GET /dashboards/list?include=definition returns full dashboards and POST /dashboards accepts the
same shape, so you copy a dashboard by replaying its JSON into the other workspace. Ids are UUIDs you
generate. In the app, the dashboard's ⋯ menu offers Duplicate, and each card's ⋯ menu
Export to CSV.
Notes
- Filter changes a viewer makes while looking at a dashboard are kept in the browser session and the page URL; they are never saved into the dashboard.
segmentStylesbelongs to one visualization; it does not change how the same property behaves in Explore.definition.versionis the version of the definition format, currently1.