POST
/
v1
/
ai
/
prediction

Body

dataset
Array<object>
required

The dataset to make predictions on. This is an array of object with keys date and value. See example below for more information.

steps
number
default: "5"

The number of predictions to make.

Sample Dataset

A dateset must be an array of object containing keys date and value.

type Dataset = {
  date: string,
  value: number | string,
};

const dataset: Array<Dataset> = [
  {
    date: "2023-10-10",
    value: 10,
  },
  {
    date: "2023-09-10",
    value: 5,
  },
];
x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.

prediction
array

Result of predictions made