Skip to main content

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​

LimitValue
Scenarios per workspace20
Adjustments per scenario50
Scenario nameRequired, 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 IDRequestScope
list-scenariosGET /scenariosscenarios:read
create-scenarioPOST /scenariosscenarios:write
get-scenarioGET /scenarios/{scenarioID}scenarios:read
update-scenarioPATCH /scenarios/{scenarioID}scenarios:write
delete-scenarioDELETE /scenarios/{scenarioID}scenarios:write
create-scenario-adjustmentPOST /scenarios/{scenarioID}/adjustmentsscenarios:write
update-scenario-adjustmentPATCH /scenarios/{scenarioID}/adjustments/{adjustmentID}scenarios:write
delete-scenario-adjustmentDELETE /scenarios/{scenarioID}/adjustments/{adjustmentID}scenarios:write
get-scenario-forecastGET /scenarios/{scenarioID}/forecastscenarios: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.

kindWhat it doesFields
one_off_expenseA single expense on startDate.accountId, amountMinor
one_off_incomeA single income on startDate.accountId, amountMinor
recurring_income_changeReplaces 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_addAdds a new recurring expense from startDate.accountId, amountMinor, frequency, optional endDate
skip_billRemoves 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 startDate before 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.
  • endDate must not be before startDate.
  • 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 amountMinor on skip_bill) are rejected.
  • PATCH cannot change the kind; 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 have source scenario and the adjustment's ID as sourceId.
  • difference: scenario minus baseline for endingBalance and lowestBalance.

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.