Revenue forecast
const url = 'https://api.ultimateteam.ai/api/v1/ml/forecast?horizons=1%2C3%2C6%2C12';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ultimateteam.ai/api/v1/ml/forecast?horizons=1%2C3%2C6%2C12' \ --header 'X-API-Key: <X-API-Key>'Return revenue forecasts at the requested horizons (admin/owner).
Forecasts the whole customer base’s MRR (no tenant filter), so this is admin/owner only – consistent with the cohort and per-tenant analytics endpoints.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Responses
Section titled “ Responses ”Successful Response
Complete revenue forecast output.
Attributes: forecasts: List of forecast points at different horizons. historical_mrr: Recent historical MRR values for context. mape_1m: Mean absolute percentage error for 1-month forecasts. generated_at: When this forecast was generated.
object
A single forecast data point for a future period.
Attributes: horizon_months: Months into the future. point_forecast: Central forecast value, must be > 0. ci_80: 80% confidence interval (lower, upper). ci_95: 95% confidence interval (lower, upper).
object
Examplegenerated
{ "forecasts": [ { "ci_80": [ "example" ], "ci_95": [ "example" ], "horizon_months": 1, "point_forecast": 1 } ], "generated_at": "2026-04-15T12:00:00Z", "historical_mrr": [ 1 ], "mape_1m": 1}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}