API Reference
Dashboards
/api/v1/console/dashboard/export JWT API KeyThe caller's visible KPI tiles over the requested range, as a file
Export = screen: the same resolution, the same filter, the same values. Link tiles are excluded as navigation, and each row names whether its figure honours the range or is point-in-time. A failure still returns the envelope rather than a zero-byte download.
- Capability
view_reports- API key scope
cap:view_reports(the key's owner must also hold the capability)
Query parameters
| Format string | `xlsx | csv | pdf`. An absent or unrecognised value streams the workbook, because XLSX is the default wire format of every export surface in this build (FR-RPT-113). |
| Lang string | — |
| Digits string | — |
| Preset string | `today | yesterday | last7 | last30 | mtd | month | custom`. Absent = today. |
| From string (date) | — |
| To string (date) | — |
| FromTime string | Optional start time, `HH:mm` Baghdad local, on `from`. Order-based reads only; 422 on a bad format (see `TimeOfDayRange`). |
| ToTime string | Optional end time, `HH:mm` Baghdad local, on `to`, end minute inclusive. Start must be <= end. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/dashboard/export" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/dashboard/journey JWT API KeyGet journey
The restaurant journey on the home page (DB-3): one server-made figure per station — menu, stock, orders, kitchen, delivery, cash, loss, guests — each left out when the caller may not see it. Same range query as `dashboard/layout`, default `today`.
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Query parameters
| Preset string | `today | yesterday | last7 | last30 | mtd | month | custom`. Absent = today. |
| From string (date) | — |
| To string (date) | — |
| FromTime string | Optional start time, `HH:mm` Baghdad local, on `from`. Order-based reads only; 422 on a bad format (see `TimeOfDayRange`). |
| ToTime string | Optional end time, `HH:mm` Baghdad local, on `to`, end minute inclusive. Start must be <= end. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/dashboard/journey" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/dashboard/layout JWT API KeyThe resolved layout and every visible tile's value
Precedence is personal layout → role default → built-in, with unknown keys dropped, duplicates collapsed in place and the capability filter applied last. Range parameters are clamped, never rejected; the default preset is `today`, because a dashboard answers "what is happening now".
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Query parameters
| Preset string | `today | yesterday | last7 | last30 | mtd | month | custom`. Absent = today. |
| From string (date) | — |
| To string (date) | — |
| FromTime string | Optional start time, `HH:mm` Baghdad local, on `from`. Order-based reads only; 422 on a bad format (see `TimeOfDayRange`). |
| ToTime string | Optional end time, `HH:mm` Baghdad local, on `to`, end minute inclusive. Start must be <= end. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/dashboard/layout" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/dashboard/layout JWTSave a layout
`scope=user` writes the caller's own row and any signed-in session may; `scope=role` writes the default every holder of that role inherits and only an OWNER may. The find-then-write runs in one transaction because the model carries no uniqueness on the scope.
- Signed-in user only
- Not open to API keys or OAuth tokens.
Request body
{
"scope": "string",
"role": "string",
"tiles": [
"string"
]
}| scope string | `user` or `role`. Anything else is refused rather than defaulted. |
| role string | Required when Panoptes.Application.DTOs.Requests.Reporting.SaveDashboardLayoutRequest.Scope is `role`, and must name one of the seeded role codes. Ignored for a personal layout. |
| tiles string[] | The ordered tile keys. Order <b>is</b> the layout, so it is preserved through de-duplication. Every key must name a registered tile; an empty list and more than `DashboardTiles.MaxTiles` keys are both refused before any write (FR-RPT-105). |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/dashboard/layout" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"scope": "string",
"role": "string",
"tiles": [
"string"
]
}'Request body (JSON)
Headers
/api/v1/console/dashboard/layout JWTRetire a saved layout by tombstone, returning the caller to the inherited one
A tombstone rather than a delete, with a required reason: the partial unique index frees the scope for a new layout without freeing the id, and resetting a role default is a change to what everyone else sees.
- Signed-in user only
- Not open to API keys or OAuth tokens.
Request body
{
"scope": "string",
"role": "string",
"reason": "string"
}| scope string | — |
| role string | — |
| reason string | Required. A tombstone with no stated reason is an unexplained disappearance. |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/dashboard/layout" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers
/api/v1/console/dashboard/tiles JWT API KeyThe closed tile registry
Every tile, each flagged with whether this caller may see it — so the layout editor mounts affordances from the answer instead of keeping a second copy of the capability matrix. Tiles a role cannot have are returned and marked, not hidden: "not permitted" and "does not exist" are different answers.
- API key scope
- Any key holding a cap: scope (a read every signed-in role can make).
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/dashboard/tiles" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers