API Reference
Report Builder
8 endpoints· Auth: JWT or API Key
get
/api/v1/console/report-builder/datasets JWT API KeyThe datasets this caller may open, their visible fields, and the builder's limits
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/report-builder/datasets" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/report-builder/preview JWT API KeyRun an unsaved query
Shows the first rows; the full result is an export job.
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Request body
application/json
{
"dataset": "string",
"columns": [
"string"
],
"groupBy": [
"string"
],
"aggregates": [
{
"field": "string",
"fn": "string"
}
],
"filters": [
{
"field": "string",
"op": "string",
"value": "string",
"values": [
"string"
]
}
],
"sort": [
{
"field": "string",
"dir": "string"
}
],
"limit": 0,
"preset": "string",
"from": "2026-11-27",
"to": "2026-11-27",
"fromTime": "string",
"toTime": "string",
"branchIds": [
"00000000-0000-0000-0000-000000000000"
]
}| dataset string | — |
| columns string[] | Row mode (no Panoptes.Application.DTOs.Requests.Reporting.CustomReportQuery.GroupBy): the fields to show, in order. |
| groupBy string[] | Group mode: up to four dimension keys. |
| aggregates CustomReportAggregate[] | Group mode: the aggregates to compute per group. |
| filters CustomReportFilter[] | — |
| sort CustomReportSort[] | Keys of OUTPUT columns (a dimension, a row-mode field, or `{fn}_{field}`). |
| limit integer (int32) | Optional cap on output rows; at most `CustomReportEngine.MaxRows`. |
| preset string | `today | yesterday | last7 | last30 | mtd | month | custom` — as the catalogue. |
| 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. |
| branchIds string (uuid)[] | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/report-builder/preview" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"dataset": "string",
"columns": [
"string"
],
"groupBy": [
"string"
],
"aggregates": [
{
"field": "string",
"fn": "string"
}
],
"filters": [
{
"field": "string",
"op": "string",
"value": "string",
"values": [
"string"
]
}
],
"sort": [
{
"field": "string",
"dir": "string"
}
],
"limit": 0,
"preset": "string",
"from": "2026-11-27",
"to": "2026-11-27",
"fromTime": "string",
"toTime": "string",
"branchIds": [
"00000000-0000-0000-0000-000000000000"
]
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/report-builder/reports JWT API KeyGet reports
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Query parameters
| Scope string | `mine` restricts to the caller's own; anything else lists own + shared. |
| Dataset string | — |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/report-builder/reports" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/report-builder/reports JWT API KeyCreate reports
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Request body
application/json
{
"name": "string",
"description": "string",
"shared": false,
"query": {
"dataset": "string",
"columns": [
"string"
],
"groupBy": [
"string"
],
"aggregates": [
{
"field": null,
"fn": null
}
],
"filters": [
{
"field": null,
"op": null,
"value": null,
"values": null
}
],
"sort": [
{
"field": null,
"dir": null
}
],
"limit": 0,
"preset": "string",
"from": "2026-11-27",
"to": "2026-11-27",
"fromTime": "string",
"toTime": "string",
"branchIds": [
"00000000-0000-0000-0000-000000000000"
]
}
}| name string | — |
| description string | — |
| shared boolean | Share with every reporting user of the branch who may open the dataset. |
| query CustomReportQuery | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/report-builder/reports" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"description": "string",
"shared": false,
"query": {
"dataset": "string",
"columns": [
"string"
],
"groupBy": [
"string"
],
"aggregates": [
{
"field": null,
"fn": null
}
],
"filters": [
{
"field": null,
"op": null,
"value": null,
"values": null
}
],
"sort": [
{
"field": null,
"dir": null
}
],
"limit": 0,
"preset": "string",
"from": "2026-11-27",
"to": "2026-11-27",
"fromTime": "string",
"toTime": "string",
"branchIds": [
"00000000-0000-0000-0000-000000000000"
]
}
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/report-builder/reports/{id} JWT API KeyGet id
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/report-builder/reports/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/report-builder/reports/{id} JWT API KeyUpdate id
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"name": "string",
"description": "string",
"shared": false,
"query": {
"dataset": "string",
"columns": [
"string"
],
"groupBy": [
"string"
],
"aggregates": [
{
"field": null,
"fn": null
}
],
"filters": [
{
"field": null,
"op": null,
"value": null,
"values": null
}
],
"sort": [
{
"field": null,
"dir": null
}
],
"limit": 0,
"preset": "string",
"from": "2026-11-27",
"to": "2026-11-27",
"fromTime": "string",
"toTime": "string",
"branchIds": [
"00000000-0000-0000-0000-000000000000"
]
}
}| name string | — |
| description string | — |
| shared boolean | Share with every reporting user of the branch who may open the dataset. |
| query CustomReportQuery | — |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/report-builder/reports/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"description": "string",
"shared": false,
"query": {
"dataset": "string",
"columns": [
"string"
],
"groupBy": [
"string"
],
"aggregates": [
{
"field": null,
"fn": null
}
],
"filters": [
{
"field": null,
"op": null,
"value": null,
"values": null
}
],
"sort": [
{
"field": null,
"dir": null
}
],
"limit": 0,
"preset": "string",
"from": "2026-11-27",
"to": "2026-11-27",
"fromTime": "string",
"toTime": "string",
"branchIds": [
"00000000-0000-0000-0000-000000000000"
]
}
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
delete
/api/v1/console/report-builder/reports/{id} JWT API KeyDelete id
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Query parameters
| Reason string | — |
Responses
200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/report-builder/reports/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Query parameters
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/report-builder/reports/{id}/run JWT API KeyRun a saved report — re-compiled against the runner's own capabilities
- Capability (any)
view_reportsorview_profitorview_glorview_hq- API key scope
cap:view_reportsorcap:view_profitorcap:view_glorcap:view_hq(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Query parameters
| Preset string | — |
| 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
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/report-builder/reports/{id}/run" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Query parameters
Headers
Set credentials in the “Authorize” menu