Recommendations API
Fetch the recommendations for a user
Authorizations
Body
profileIdstringRequiredExample:
Unique identifier of the profile
abcd-1234-abcd-1234
modelIdstringRequiredExample:
ID of the model you're using
abcd-1234-abcd-1234
topNintegerRequiredExample:
Number of results to retrieve
10
Responses
200
Fetched recommendations successfully
400
Bad Request - Invalid input parameters
401
Unauthorized - Authentication credentials are missing or invalid
403
Forbidden - Insufficient permissions to perform the operation
500
Internal Server Error - Unexpected server error occurred
post
POST /recommendations HTTP/1.1
Host: product-api.userflux.co
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 232
{
"profileId": "abcd-1234-abcd-1234",
"modelId": "abcd-1234-abcd-1234",
"filter": {
"propertyFilters": [
{
"propertyPath": "category",
"operator": "EQUALS",
"value": "business"
}
],
"geoFilter": {
"type": "PROFILE_LOCATION",
"distance": 25000
}
},
"topN": 10
}
No content
Last updated