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.
| Format | Description |
|---|---|
goalId | The ID of the prediction definition to query for historical predictions. |
targets | A list of opportunity IDs as strings to use for the target entities of the query. The list is limited to 1 entry. |
range | An optional range for the query. Use the Predict History Range Input to specify the range. The range includes:
|
Query the prediction history using the following API request:
Request body:
The POST response is a Predict History Collection.