Skip to main content
GET
List forecasts

Authorizations

Authorization
string
header
required

An InsightChain API key: ic_live_... for your organization, ic_test_... for its sandbox

Query Parameters

window_days
integer
default:90

Demand history window

Required range: 30 <= x <= 365
horizon_days
integer
default:30
Required range: 7 <= x <= 90
item
string

Narrow to one item (external id)

Maximum string length: 50
limit
integer
default:100
Required range: 1 <= x <= 200
cursor
string

next_cursor of the previous page. Opaque; valid only with the same filters

Maximum string length: 200

Response

OK

object
any
required
data
object[]
required
has_more
boolean
required

Whether a further page exists

next_cursor
string | null
required

Send as cursor for the next page; null on the last page

forecasts
object[]
required
deprecated

Deprecated: the same rows as data

window_days
integer
required

Demand history window used

horizon_days
integer
required
data_as_of
string<date-time> | null
required

When the organization's data was last received; null before the first sync

demand_source
object
required
stale
boolean
required

True when the data is more than 24 hours old, or was never received

count
integer
required

Rows in this page

demand_drivers_in_horizon
object[]
required

Demand-moving events that start before the horizon ends: context, never applied to the forecast

planning
object
required

Read from the latest stored results

notes
string[]
required
duration_ms
integer
required

Milliseconds the request took

request_id
string
required

Quote this when asking about the request; also the X-Request-ID header

total
integer

Rows in the whole list, before paging; absent when the answer is read from stored results