Recommendations
Recommendation History
Retrieve user recommendation history
GET
Recommendation History
Overview
Retrieves the recommendation history for the authenticated user with pagination support. Results are cached for 1 hour.This endpoint only returns recommendations generated by the authenticated user.
Authentication
Required: Bearer token in Authorization headerQuery Parameters
Page number for pagination
Number of results per page (max 100)
Response
Indicates if the request was successful
Array of recommendation records
Pagination metadata
Examples
Response Example (200 OK)
Error Responses
| Status Code | Description |
|---|---|
| 401 | Missing or invalid authentication token |
| 500 | Internal server error |
Caching
Responses are cached for 1 hour (3600 seconds) to improve performance. Recent recommendations may take up to an hour to appear in the history.
Related Endpoints
Generate Recommendation
Generate new tractor recommendations
Get Recommendation
Get detailed recommendation by ID
Source Code Reference
- Route:
src/routes/recommendation.routes.js:216 - Controller:
src/controllers/recommendationController.js:getRecommendationHistory
Recommendation History
