Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Reports Forecast Prepare

post/api/v1/skills/reports.forecast.prepare/invoke

Prepare a financial forecast β€” multi-scenario, with assumptions register.

Projects monthly revenue, expenses, EBITDA and cash for one or more scenarios from the client's trial balance. Only client_id is required; the horizon, scenarios, statements, seasonality and output format all have defaults, and growth_assumptions overrides the drivers. The answer holds the monthly figures for each scenario, an assumptions register and data-quality notes.

Request bodyapplication/json

FieldTypeDescription
client_idrequiredstring (uuid)UUID of the client entity to forecast.
horizon_monthsintegerNumber of months to project from the latest period; 12 when omitted.
scenarios"base" | "optimistic" | "pessimistic"[]Scenarios to model, any of base, optimistic and pessimistic.
projection_type"pnl" | "cashflow" | "balance_sheet"[]Statements to project, any of pnl, cashflow and balance_sheet.
seasonal_adjustmentbooleanWhether to apply monthly seasonal factors to the projection.
growth_assumptionsobjectNumeric overrides keyed revenue_growth_annual (a fraction, so 0.05 is 5%), dso_days, dpo_days and seasonal_factor_01 to seasonal_factor_12.
show nested
Empty object.
output_format"data" | "document" | "both"What to return: data, document or both.
datadocumentboth

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectβ€”
show nested
FieldTypeDescription
artifact_idstring (uuid) | nullβ€”
download_urlstringβ€”
summarystringβ€”
citationsany[]β€”
warningsstring[]β€”
stub_fieldsstring[]β€”
forecast_idstring (uuid)β€”
horizon_monthsintegerβ€”
base_periodstringβ€”
currencystringβ€”
scenariosobjectβ€”
show nested
Empty object.
assumptions_registerobject[]β€”
item shape
Empty object.
data_qualityobjectβ€”
show nested
Empty object.
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
curl https://api.dev.arch.ie/api/v1/skills/reports.forecast.prepare/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "client_id": "00000000-0000-0000-0000-000000000000",
       "horizon_months": 0,
       "scenarios": [
         "base"
       ],
       "projection_type": [
         "pnl"
       ],
       "seasonal_adjustment": false,
       "growth_assumptions": {},
       "output_format": "data"
     }'