Fetch All Recommendations
This API retrieves the list of recommendations configured in your workspace, along with the metadata of each recommendation. The results are sorted by the last updated time, with the most recently updated recommendation first.
Use this API to look up the recommendation_id of a recommendation, which you need for the Fetch Recommendation Details and Fetch Recommendation Results APIs.
The response does not include a total count of recommendations. You have reached the last page when the items array contains fewer recommendations than the size you requested, or when it is empty.
Rate Limit
You can make 100 requests per minute and 10,000 requests per day.Authorizations
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Campaign report/Business events/Custom templates/Catalog API/Inform Report tile.
For more information on authentication and getting your credentials, refer here.
Headers
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
Query Parameters
This parameter indicates the number of recommendations to return in a single page. The maximum value is 100. Pass it along with batch_num to paginate the results.
1 <= x <= 100This parameter indicates the page number to return. The first page is 1. Pass it along with size. For example, size=10 and batch_num=2 return the 11th to the 20th recommendations.
x >= 1This parameter filters the results by the recommendation's status. The supported values are Active, Processing, Archived, and Failed. These values are case-sensitive.
To filter by more than one status, pass the values as a comma-separated list. For example, status=Active,Processing.
If you don't provide this parameter, the response excludes archived recommendations.
Response
Indicates that the request is successful and the list of recommendations is fetched.
This array contains the metadata of each recommendation in your workspace.