Loading...

GET /api/devices/{deviceId}

A Plaspy 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 for the device. 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 successDaily units used for this device 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 Plaspy.
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 }

Errors

For HTTP 400, read the reason in error. The device may be missing, hidden from the user, not enabled or at its daily limit. 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
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:47:33