Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Unread events

The history entries a user has not read yet, listed or counted.

These two operations cover the unread subset of the event history: one lists the entries the user has not read, the other counts them, which is what an unread badge needs.

Entries are marked read with history/mark_read and history/mark_read_all. The default and maximum limit is the history.max_limit value that dealer/get_ui_config reports.

For a walkthrough, see all unread events of a user.

API actions

API base path: /history/unread.

Operations that list no errors of their own return only the general error codes.


List unread history

post
/history/unread/list

Return the history entries the user has not read yet.

Callable with an empty body. Also accepts GET.

Authorizations
AuthorizationstringRequired

Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.

Body
limitintegerOptional

Optional. Both the default and the maximum are the platform history.max_limit, which dealer/get_ui_config reports.

fromstringOptional

Optional. Start of the search period. Defaults to one year ago, so a caller wanting everything older must say so.

Example: 2026-08-24 09:00:00
add_tracker_filesbooleanOptional

Optional. Default false. Add files to each entry: the camera recordings and photos uploaded to Navixy that start within 10 seconds before or after the event. Applied only when the caller has the video_monitoring right, and ignored otherwise.

Responses
200

Unread history entries

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
max_limitintegerOptional

The largest limit the platform will honour, the same history.max_limit the request parameter is capped at.

post/history/unread/list
POST /v2/history/unread/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "limit": 1,
  "from": "2026-08-24 09:00:00",
  "add_tracker_files": true
}
{
  "success": true,
  "list": [
    {
      "id": 1,
      "type": "socket",
      "is_read": true,
      "message": "text",
      "time": "text",
      "event": "text",
      "tracker_id": 1,
      "rule_id": null,
      "track_id": 1,
      "address": null,
      "location": {
        "lat": 1,
        "lng": 1,
        "precision": 1,
        "address": "text"
      },
      "assets": [
        {
          "id": 1,
          "type": "vehicle"
        }
      ],
      "files": [
        {
          "id": 1,
          "storage_id": 1,
          "user_id": 1,
          "subuser_id": null,
          "type": "image",
          "created": "text",
          "uploaded": "text",
          "name": "2026_11_02_08_15_00_22_861234567890123_HVIDEO_HD.mp4",
          "size": 1,
          "mime_type": "video/mp4",
          "storage_data": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "metadata": null,
          "state": "created",
          "previews": [
            {
              "ANY_ADDITIONAL_PROPERTY": "anything"
            }
          ],
          "download_url": "text",
          "view_url": "text",
          "file_source_key": "front_camera"
        }
      ],
      "extra": {
        "employee_full_name": "text",
        "vehicle_label": "text",
        "task_id": null,
        "parent_task_id": null,
        "counter_id": null,
        "service_task_id": null,
        "checkin_id": null,
        "place_ids": [
          1
        ],
        "places_total_count": 1,
        "last_known_location": true,
        "tracker_label": "text",
        "emergency": true,
        "zone_ids": [
          1
        ],
        "zone_labels": [
          "text"
        ],
        "proximity_object_id": 1,
        "employee_id": 1,
        "sensor_id": 1,
        "sensor_name": "text",
        "sensor_calculated_value": "text",
        "full_message": "text",
        "precision": 1,
        "command": {
          "name": "text",
          "param": null,
          "response": {
            "status": null,
            "body": null,
            "error": null,
            "success": null
          }
        },
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  ],
  "max_limit": 1
}

Errors

These errors come in addition to the general error codes:

  • 212 - Requested period is not available on the current plan.


Count unread history

post
/history/unread/count

Return how many history entries the user has not read yet.

Callable with an empty body. Also accepts GET.

Authorizations
AuthorizationstringRequired

Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.

Body
fromstringOptional

Optional. Start of the search period. Defaults to one year ago.

Example: 2026-08-24 09:00:00
Responses
200

The count

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
countintegerOptional

Number of unread history entries.

post/history/unread/count
POST /v2/history/unread/count HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "from": "2026-08-24 09:00:00"
}
{
  "success": true,
  "count": 1
}

Last updated

Was this helpful?