Predict API (0.1.0)
Download OpenAPI specification:Download
API powering the Predict feature of Algolia.
Send requests to the Algolia REST API
This method allow you to send requests to the Algolia REST API.
path Parameters
path required | string Example: /keys The path of the API endpoint to target, anything after the /1 needs to be specified. |
query Parameters
object Query parameters to be applied to the current query. |
Responses
Response samples
- 200
- 400
- 402
- 403
- 404
{ }
Send requests to the Algolia REST API
This method allow you to send requests to the Algolia REST API.
path Parameters
path required | string Example: /keys The path of the API endpoint to target, anything after the /1 needs to be specified. |
query Parameters
object Query parameters to be applied to the current query. |
Request Body schema: application/json
The parameters to send with the custom request.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- 400
- 402
- 403
- 404
{ }
Send requests to the Algolia REST API
This method allow you to send requests to the Algolia REST API.
path Parameters
path required | string Example: /keys The path of the API endpoint to target, anything after the /1 needs to be specified. |
query Parameters
object Query parameters to be applied to the current query. |
Request Body schema: application/json
The parameters to send with the custom request.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- 400
- 402
- 403
- 404
{ }
Send requests to the Algolia REST API
This method allow you to send requests to the Algolia REST API.
path Parameters
path required | string Example: /keys The path of the API endpoint to target, anything after the /1 needs to be specified. |
query Parameters
object Query parameters to be applied to the current query. |
Responses
Response samples
- 200
- 400
- 402
- 403
- 404
{ }
Get user profile
Get predictions, properties (raw, computed or custom) and segments (computed or custom) for a user profile.
path Parameters
userID required | string User ID for authenticated users or cookie ID for non-authenticated repeated users (visitors). |
Request Body schema: application/json
modelsToRetrieve | Array of strings (modelsToRetrieve) Items Enum: "funnel_stage" "order_value" "affinities" List with model types for which to retrieve predictions. |
typesToRetrieve | Array of strings (typesToRetrieve) non-empty Items Enum: "properties" "segments" List with types to be retrieved. |
Responses
Request samples
- Payload
{- "modelsToRetrieve": [
- "funnel_stage"
], - "typesToRetrieve": [
- "properties"
]
}
Response samples
- 200
- 400
- 404
- 405
{- "user": "string",
- "predictions": {
- "funnel_stage": {
- "value": [
- {
- "name": "string",
- "probability": 1
}
], - "lastUpdatedAt": "string"
}, - "order_value": {
- "value": 0,
- "lastUpdatedAt": "string"
}, - "affinities": {
- "value": [
- {
- "name": "string",
- "value": "string",
- "probability": 1
}
], - "lastUpdatedAt": "string"
}
}, - "properties": {
- "raw": { },
- "computed": { },
- "custom": { }
}, - "segments": {
- "computed": [
- "string"
], - "custom": [
- "string"
]
}
}