Documentation menuAPI: Dashboards

API

Dashboards endpoints

These endpoints manage custom dashboards and run the query of a card. Reading needs dashboards:read, and saving needs dashboards:write. They need a member or a key. Shared dashboards cannot call them.

Last updated .

How do you read and save dashboards?

RequestResult
GET /sites/:siteId/dashboardsAll dashboards for the site, the most recently changed first
GET /sites/:siteId/dashboards/:idOne dashboard
POST /sites/:siteId/dashboardsCreates one from name and config. Status 201 with dashboardId
PUT /sites/:siteId/dashboards/:idReplaces the cards when you send config
DELETE /sites/:siteId/dashboards/:idDeletes it

A dashboard holds up to 20 cards in config.cards.

Card fieldContent
id, titleYour own ID and the heading
sqlThe query. See Custom SQL for the rules
vizTypetable, line, area, bar, hbar, pie, stat, map or calendar
mappingWhich columns to plot, and valueFormat: number, percent, duration or bytes
gridPosPosition and size: x, y, w, h

The query of a card is checked when it runs, not when you save it.

POST /sites/:siteId/dashboards/run-card

Runs one query against the events of this site.

FieldRequiredContent
queryYesUp to 20,000 characters. Can use {{bucket}} and {{tz}}
startDate, endDateNoThe period, as dates
timeZoneNoDefault UTC
bucketNoDefault hour
{ "data": [ { "t": "2026-11-01 00:00:00", "events": "4211" } ], "meta": { "queryId": "5f1c2e9a", "rowCount": 18, "maxExecutionTimeSeconds": 10, "maxRows": 1000 } }

A result holds at most 1,000 rows, and a query stops after 10 seconds. The limit is 60 requests per minute.