Query Prediction History

The Einstein Prediction Service provides a REST API endpoint to query prediction histories.

Use the Predict History Input to create your request body.

In the request body, you specify the ID of the goal, the prediction history range, and a list of targets.

FormatDescription
goalIdThe ID of the prediction definition to query for historical predictions.
targetsA list of opportunity IDs as strings to use for the target entities of the query. The list is limited to 1 entry.
rangeAn optional range for the query. Use the Predict History Range Input to specify the range. The range includes:
  • maxLookBack an optional value to specify the number of prediction history values. 1-3 are the valid values, with a default value of 1.
  • interval an optional value to specify the prediction history interval. Valid values are Weekly or None, with a default value of Weekly.

Query the prediction history using the following API request:

Request body:

The POST response is a Predict History Collection.