Before you start
In Build → Developers, create a scoped key with Submit forecasts and Read forecasts. Conversation submission and read permissions are separate. You need a consistent interval, timezone, history start, numerical values, and forecast horizon. Chooseauto for bounded method evaluation, or an explicitly supported method. Review forecasting pricing.
Submit a numerical series
Save this synthetic example asforecast.json. It asks for four future daily points from one target series.
MACH1_API_KEY, MACH1_WORKSPACE_ID, and a new MACH1_FORECAST_KEY in your application’s environment. Persist the key with this exact request before sending.
run_id, status, and results_url. Keep the run ID and returned price. A 202 response means the work was accepted and is still in progress.
Retrieve the forecast
SetMACH1_RUN_ID to the returned run ID.
next_cursor. Retain the same run and quantile selection across pages.
Rows include the interval, series/dimensions, predicted_value, available bounds, and method metadata. Available quantiles describe the forecast distribution. predicted_value can differ from P50: read point_statistic, interval_statistic, and quantile_space when interpreting them.
Add drivers
A numerical series can include up to eight numeric or categorical drivers.- A
past_onlydriver supplies values for the history. - A
known_futuredriver supplies values for history and the requested future horizon. - Its
maskstates which values are known. OptionalavailableAttimestamps preserve when information became available. - Use
autoortimestralfor explicit numerical drivers.
Forecast a registered metric
Use MCPmach1_list_forecast_sources with the granted workspace_id to discover available metrics, dimensions, and grains. Then submit a source.type of metric with the discovered reference and an explicit history window.
Discovery establishes catalog support. The run separately checks source access and the requested observed history.
Use MCP
Discover visible tools, then callmach1_submit_forecast with request set to the same JSON object and a stable idempotency_key. Read the result with mach1_get_forecast. See the agent quickstart and forecasting REST reference.
Limits and recovery
Use
null for missing observations and zero for measured zero. Numerical series in one request must have the same history length and unique IDs.
After an uncertain submission, retry the identical request with its original key. A changed request needs a new key. Read retained results without starting another run. For 403, check forecast grants, workspace selection, and current source access. For 503, retain the request and follow the retry guidance.