Scenarios
A scenario is a named, workspace-scoped list of what-if adjustments that is laid over the account balance forecast. Applying a scenario returns, for each account, the baseline forecast and the scenario forecast side by side, with the lowest balance and the difference.
A scenario is an overlay, not a copy of your budget. It never writes transactions, bills, income schedules, targets or budget rows: the adjustments exist only inside the scenario, and deleting it removes them.
All endpoints sit under /api/v1/workspaces/{workspaceID}/scenarios, are
available on every plan and use the scenarios:read and scenarios:write
scopes. Anyone who can read the workspace can read its
scenarios; only owners, admins and editors can create, change or delete them.
The three read operations are also available to AI assistants as the
list_scenarios, get_scenario and get_scenario_forecast
MCP tools.
Limits
| Limit | Value |
|---|---|
| Scenarios per workspace | 20 |
| Adjustments per scenario | 50 |
| Scenario name | Required, up to 120 characters, unique in the workspace |
Past either limit the API answers 422 (scenarioLimitReached or
scenarioAdjustmentLimitReached); delete one to add another.
Endpoints
| Operation ID | Request | Scope |
|---|---|---|
list-scenarios | GET /scenarios | scenarios:read |
create-scenario | POST /scenarios | scenarios:write |
get-scenario | GET /scenarios/{scenarioID} | scenarios:read |
update-scenario | PATCH /scenarios/{scenarioID} | scenarios:write |
delete-scenario | DELETE /scenarios/{scenarioID} | scenarios:write |
create-scenario-adjustment | POST /scenarios/{scenarioID}/adjustments | scenarios:write |
update-scenario-adjustment | PATCH /scenarios/{scenarioID}/adjustments/{adjustmentID} | scenarios:write |
delete-scenario-adjustment | DELETE /scenarios/{scenarioID}/adjustments/{adjustmentID} | scenarios:write |
get-scenario-forecast | GET /scenarios/{scenarioID}/forecast | scenarios:read |
Create a scenario with {"name": "Move to a new city", "description": "..."}.
A scenario in another workspace answers 404, whatever your access there.
Adjustments
Every adjustment has a kind, an optional name and a startDate. Amounts
(amountMinor) are positive integers in the workspace's minor unit; the kind
decides whether the amount adds or subtracts.
kind | What it does | Fields |
|---|---|---|
one_off_expense | A single expense on startDate. | accountId, amountMinor |
one_off_income | A single income on startDate. | accountId, amountMinor |
recurring_income_change | Replaces the amount of an income schedule's paychecks from startDate (a raise). | sourceId (income schedule), amountMinor = the new amount per paycheck, optional endDate |
recurring_expense_add | Adds a new recurring expense from startDate. | accountId, amountMinor, frequency, optional endDate |
skip_bill | Removes a bill's occurrences from startDate. | sourceId (bill), optional endDate |
frequency takes the same values as recurring transactions (weekly,
every_2_weeks, monthly, yearly and so on). A recurrence is anchored on
startDate: a monthly expense that starts on the 31st lands on the last day of
shorter months and returns to the 31st afterwards.
Validation errors are 422 problem responses:
- A
startDatebefore today (in the workspace time zone) is rejected when you create an adjustment or move its start date. Renaming or changing the amount of an adjustment whose day has passed is still allowed. endDatemust not be beforestartDate.- An account must exist in the workspace and not be archived; a bill or income schedule must exist in the workspace.
- Fields that don't apply to the kind (for example
amountMinoronskip_bill) are rejected. PATCHcannot change thekind; delete the adjustment and add another.
Forecast
GET /api/v1/workspaces/{workspaceID}/scenarios/{scenarioID}/forecast?horizonDays=90&interval=daily
horizonDays is 30, 90 (default), 180 or 365; interval is daily (default)
or weekly. It uses the same opening balances and expectations as the
account balance forecast and is deterministic: the same
scenario on the same day returns the same numbers. It draws on the
api.report-generation rate-limit policy.
Each entry of accounts has:
baseline: the forecast without the scenario, the same figures the account balance forecast returns.scenario: the forecast with the adjustments applied. Events an adjustment adds or changes havesourcescenarioand the adjustment's ID assourceId.difference: scenario minus baseline forendingBalanceandlowestBalance.
Both series carry currentBalance, endingBalance, lowestBalance,
lowestDate, firstNegativeDate (asset accounts only) and points. The
response also lists assumptions, including what the forecast leaves out.
An adjustment whose account is archived, or whose bill or income schedule no
longer exists, has no effect.
Related
- Reports API: the baseline account balance forecast.
- Scopes
- Scenario planning: the concept, for people.