API Reference
Trends
Week-on-week and month-on-month trends.
2 endpoints· Auth: JWT or API Key
get
/api/v1/console/reports/trends JWT API KeyThe trend registry, each entry flagged with whether this caller may open it
- Capability (any)
view_reportsorview_profit- API key scope
cap:view_reportsorcap:view_profit(the key's owner must also hold the capability)
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/reports/trends" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/reports/trends/{metric} JWT API KeyGet metric
One series, bucketed by Baghdad business day or ISO week (`?grain=day|week`), over a preset or a `from`/`to` window — clamped, never rejected.
- Capability (any)
view_reportsorview_profit- API key scope
cap:view_reportsorcap:view_profit(the key's owner must also hold the capability)
Path parameters
| metricrequired string | — |
Query parameters
| Preset string | `today | yesterday | last7 | last30 | mtd | month | custom`. Absent = `last30`. |
| 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. |
| Grain string | `day | week`. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/reports/trends/{metric}" \
-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