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?
| Request | Result |
|---|---|
GET /sites/:siteId/dashboards | All dashboards for the site, the most recently changed first |
GET /sites/:siteId/dashboards/:id | One dashboard |
POST /sites/:siteId/dashboards | Creates one from name and config. Status 201 with dashboardId |
PUT /sites/:siteId/dashboards/:id | Replaces the cards when you send config |
DELETE /sites/:siteId/dashboards/:id | Deletes it |
A dashboard holds up to 20 cards in config.cards.
| Card field | Content |
|---|---|
id, title | Your own ID and the heading |
sql | The query. See Custom SQL for the rules |
vizType | table, line, area, bar, hbar, pie, stat, map or calendar |
mapping | Which columns to plot, and valueFormat: number, percent, duration or bytes |
gridPos | Position 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.
| Field | Required | Content |
|---|---|---|
query | Yes | Up to 20,000 characters. Can use { and { |
startDate, endDate | No | The period, as dates |
timeZone | No | Default UTC |
bucket | No | Default 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.