> ## Documentation Index
> Fetch the complete documentation index at: https://docs.smlcrm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Forecast

> Generate a next-step forecast for a univariate time series.

### Request

#### Headers

* Authorization: Bearer sim-key\_id-secret
* Content-Type: application/json

#### Body

```json theme={null}
{
  "series": [412.0, 415.5, 418.3],
  "horizon": 4
}
```

#### Body fields

* `series` (`number[]`, required): Observed values in time order.
* `horizon` (integer, required): Number of future steps to forecast.

### Responses

#### 200 OK

```json theme={null}
{
  "forecast": [419.2, 421.1, 424.0, 427.5]
}
```

#### Error codes

* `API_KEY_INVALID`, `API_KEY_INACTIVE`, `API_KEY_EXPIRED`
* `REQUEST_INVALID`
* `FORECAST_ALREADY_RUNNING`
* `API_USAGE_LIMIT`
