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

Alarm mode

Turn a tracker's alarm mode on or off, and read whether it is currently on.

Alarm mode is a per-tracker switch held on the device itself. These two operations read it and change it.

Both depend on the hardware. A model that has no alarm mode answers error 214, and because setting the mode reaches the device, an offline tracker answers error 213.

API actions

API base path: /tracker/alarm_mode.


Read alarm mode

post
/tracker/alarm_mode/read

Get whether alarm mode is on for a device. Available to demo accounts. Models that do not support alarm mode answer error 214.

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
tracker_idintegerRequired

ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.

Example: 123456
Responses
200

The alarm mode state

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
enabledbooleanOptional

true when alarm mode is on.

post/tracker/alarm_mode/read
POST /v2/tracker/alarm_mode/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "tracker_id": 123456
}
{
  "success": true,
  "enabled": true
}

Errors

These errors come in addition to the general error codes:

  • 204 - No tracker with this ID belongs to the account.

  • 208 - The tracker exists but is blocked, normally because its tariff ended.

  • 214 - The device does not support alarm mode.


Turn alarm mode on or off

post
/tracker/alarm_mode/set

Change alarm mode on a device. The device must be online, since this reaches the hardware; an offline device answers error 213.

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
tracker_idintegerRequired

ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.

Example: 123456
enabledbooleanRequired

Whether alarm mode should be on.

Responses
200

The change was sent

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/tracker/alarm_mode/set
POST /v2/tracker/alarm_mode/set HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "tracker_id": 123456,
  "enabled": true
}
{
  "success": true
}

Errors

These errors come in addition to the general error codes:

  • 204 - No tracker with this ID belongs to the account.

  • 208 - The tracker exists but is blocked, normally because its tariff ended.

  • 213 - The device is offline.

  • 214 - The device does not support alarm mode.

  • 219 - The tracker is a clone.

Last updated

Was this helpful?