ENA Feedback
API Reference

Reviews API

REST API endpoints for listing review responses and accessing per-question analytics.

Last updated on

List review responses

GET /api/review

Query parameters:

ParameterTypeDescription
pagenumberPage number (default: 1)
limitnumberResults per page (default: 25, max: 100)
searchstringSearch by location name
locationIdstringFilter by location ID
buildingIdstringFilter by building ID
dateFromstringISO 8601 start date
dateTostringISO 8601 end date

Response:

{
  "success": true,
  "data": [
    {
      "id": "rev_abc123",
      "locationName": "Reception",
      "locationPath": "Main Campus / Ground Floor / Reception",
      "completedAt": "2026-06-21T10:30:00Z",
      "hasComment": true,
      "attachmentCount": 0,
      "ticketCode": "RVW-001"
    }
  ],
  "meta": {
    "total": 142,
    "page": 1,
    "limit": 25,
    "totalPages": 6
  }
}

Get review response

GET /api/review/:id

Returns the full review response including all answers.

Get review stats

GET /api/review/stats

Returns total response count and a 30-day daily trend array.

Get review analytics

GET /api/review/analytics

Returns per-question score distributions, averages, and per-location response counts.

Query parameters:

ParameterTypeDescription
locationIdstringFilter by location
buildingIdstringFilter by building
dateFromstringISO 8601 start date
dateTostringISO 8601 end date

Export review responses

GET /api/review/export

Returns a CSV file with all review responses for the authenticated tenant.