This endpoint retrieves all Comments of an Incident.
Request
To retrieve all Comments of an Incident please make a GET request to the following URL:
| HTTP Method | URL |
|---|---|
| GET | https://nanoview-api.wellairsolutions.com/api/v2.0/incidents/<incident_id>/comments/ |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| incident_id | String | The id of the Incident. Incidents have no label, so the ~label form is not supported |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | Integer | Page number. Default 1 |
| page_size | Integer | Results per page. Default 50, max 200 |
| sort_by | String | Comma-separated fields, prefix - for descending. Default -createdAt. Allowed: id, context__message, context__username, createdAt; any other field is ignored |
| search | String | Case-insensitive search over the message and the username. Also search__<lookup> with the text lookups |
| fields | String | Comma-separated list of fields to keep in the response, e.g. id,name,state |
| omit | String | Comma-separated list of fields to drop from the response |
Filters
| Filter Attribute | Filter Type | Available Filters | Reference |
|---|---|---|---|
| id | Id | exact, in | Field Filter Id |
| message | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case insensitive), endswith, iendswith (case insensitive) | Field Filter String |
| username | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case insensitive), endswith, iendswith (case insensitive) | Field Filter String |
| createdAt | Date | exact (=), isnull, date, year, month, day, hour, and each unit with gt, gte, lt, lte and range | Field Filter Date |
Header
| Parameter | Required? | Description |
|---|---|---|
| X-Auth-Token | Yes | Authentication Token of account |
$ curl -X GET 'https://nanoview-api.wellairsolutions.com/api/v2.0/incidents/<incident_id>/comments/?message__icontains=technician' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "689e2f1a246a939d3a0c2f10",
"message": "Technician dispatched",
"username": "jane.doe",
"createdAt": "2026-11-20T14:20:45.118000Z"
}
]
}{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}{
"code": 404001,
"message": "The request was not found."
}Response
An object with an array results of Comment objects, newest first.
Any user who can see the Incident can read, add, update and delete its Comments.
