Loading...

GET /api/devices/{deviceId}

A Net Domain Technologies device record lets you look up a tracker’s name, description and available tags by its identifier. For example, if a delivery order only contains an identifier, you can retrieve the vehicle’s name and display it alongside the order.

Use the id from the device list. The response contains the record in device. To place the vehicle on a map, use the same identifier to look up its last known location.

Request details

GET /api/devices/{deviceId}

Request parameters

ParameterTypeRequiredDescription
deviceIdStringRequiredStringYesReplace {deviceId} with the id returned by the device list.

Authentication required

Obtain an access token and send it in the Authorization header with the Bearer prefix.

Example request

For {api-host}, use the HTTPS host listed in the REST API reference. Replace the other values in braces with those for your integration.

GET /api/devices/{deviceId} HTTP/1.1 Host: {api-host} Authorization: Bearer {token}

Response fields

A successful look-up uses one unit from the user’s daily allowance and one from the tracker’s allowance, which is shared by all users who access it. The response gives this charge separately from the daily usage accumulated before the request.

FieldTypePresenceDescription
successBooleanIn the responseBooleanIn the responsetrue indicates that the operation succeeded.
deviceObjectOn successObjectOn successRecord for the requested device.
apiUsageIntegerOn successIntegerOn successUnits used by this request. The value is 1.
apiDailyUsageIntegerOn successIntegerOn successAPI units all users had used for this tracker today before this request.
apiUserDailyUsageIntegerOn successIntegerOn successAPI units the user had used today before this request.
errorStringOn errorStringOn errorReason given when the operation returns an error.

Device fields

FieldTypePresenceDescription
idStringIn the responseStringIn the responseTracker identifier. Use it as deviceId in requests for this device.
nameStringWhen availableStringWhen availableDevice name in Net Domain Technologies.
descriptionStringWhen availableStringWhen availableDescription saved in the device record.
minStringWhen availableStringWhen availablePhone number associated with the device.
tagsObjectWhen availableObjectWhen availableDevice tags as pairs of text keys and values.
expiresDate-timeWhen availableDate-timeWhen availableDevice expiry date and time.

Example HTTP 200 response

{ "success": true, "device": { "id": "{deviceId}", "name": "{deviceName}", "description": "{description}", "min": "{phone}", "tags": { "{tagName}": "{tagValue}" }, "expires": "2030-01-15T12:00:00Z" }, "apiUsage": 1, "apiDailyUsage": 4, "apiUserDailyUsage": 38 }

Errors

If either daily allowance is exhausted when the request starts, the API returns HTTP 400 with success set to false. The error message identifies the allowance and its reset time.

  • User — Your user has reached its daily API request limit of 4000 requests (used 4000). The limit resets at 00:00 UTC.
  • Tracker — You have reached your daily API request limit of 2000 requests (used 2000). The limit resets at 00:00 UTC.

For HTTP 400, read the reason in error. The device may be missing, hidden from the user, or not enabled. Check the identifier against the same user’s device list.

For HTTP 401, check the token and its expiry time. For HTTP 403, check whether the user can access the map. For HTTP 500, try again later.

Example HTTP 400 response

{ "success": false, "error": "Device with id '{deviceId}' does not exist." }
Index
Last modification: 2026-11-30 22:48:04