API Reference
Forecasting
Demand and prep forecasts per product and day.
7 endpoints· Auth: JWT or API Key
get
/api/v1/console/forecasting/accuracy JWT API KeyPast forecasts scored against what actually sold, and the latest backtest
- Capability
view_reports- API key scope
cap:view_reports(the key's owner must also hold the capability)- Plan feature
forecastingmust be on the branch's plan, or the call answers 403.
Query parameters
| Days integer (int32) | Days back from yesterday, 7–56 (default 28). |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/forecasting/accuracy" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/forecasting/calendar JWT API KeyThe computed Iraqi calendar with its learned uplifts and the owner's overrides
- Capability
view_reports- API key scope
cap:view_reports(the key's owner must also hold the capability)- Plan feature
forecastingmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | Default today. |
| To string (date) | Default From + 90 days; at most 400 days after From. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/forecasting/calendar" \
-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/forecasting/calendar/overrides JWT API KeyAdd or suppress one event on one day (upsert on branch, day, event)
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)- Plan feature
forecastingmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"businessDate": "2026-11-27",
"eventKey": "string",
"action": "string",
"factorBp": 0,
"label": "string",
"note": "string"
}| businessDate string (date) | — |
| eventKey string | A calendar key (`eid_al_fitr`…) or `custom:<slug>`. |
| action string | `add` | `suppress`. |
| factorBp integer (int32) | An explicit factor in basis points, 1000–50000; null = learn it from history. |
| label string | — |
| note string | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/forecasting/calendar/overrides" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"businessDate": "2026-11-27",
"eventKey": "string",
"action": "string",
"factorBp": 0,
"label": "string",
"note": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
delete
/api/v1/console/forecasting/calendar/overrides/{id} JWT API KeyWithdraw an override (a tombstone with a reason)
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)- Plan feature
forecastingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"reason": "string"
}| reason string | — |
Responses
200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/forecasting/calendar/overrides/{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
get
/api/v1/console/forecasting/demand JWT API KeyGet demand
The persisted forecast, per product per day, with 80 % intervals and each product's backtest.
- Capability
view_reports- API key scope
cap:view_reports(the key's owner must also hold the capability)- Plan feature
forecastingmust be on the branch's plan, or the call answers 403.
Query parameters
| Days integer (int32) | Days from today to show, 1–42 (default 14) — the forecast horizon a screen picks inside the run's six weeks (comeback r4; was 1–14). Outside the range it is clamped, and the applied span is echoed. |
| ProductId string (uuid) | One product only. |
| Sufficiency string | `ok` | `limited` | `insufficient`; anything else is ignored. |
| Search string | Product name contains. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/forecasting/demand" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/forecasting/prep-plan JWT API KeyThe kitchen's prep plan for one day (default tomorrow)
- Capability
create_batch- API key scope
cap:create_batch(the key's owner must also hold the capability)- Plan feature
forecastingmust be on the branch's plan, or the call answers 403.
Query parameters
| BusinessDate string (date) | The business day to plan (default tomorrow): today up to today + 41, the forecast horizon (comeback r4). Must be inside the latest run's horizon to carry a plan. |
| Basis string | `point` (the forecast, default) or `upper` (the 90th percentile — plan for a busy day). |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/forecasting/prep-plan" \
-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/forecasting/recompute JWT API KeyThe owner's on-demand run for today; supersedes today's live run
- Capability
view_profit- API key scope
cap:view_profit(the key's owner must also hold the capability)- Plan feature
forecastingmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"scanAnomalies": false
}| scanAnomalies boolean | Also re-scan yesterday for anomalies (default true). |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/forecasting/recompute" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"scanAnomalies": false
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu