Queries

List all devices

Functionality: Returns a list of all devices containing the Device ID, IMEI and Serial
API URI: v2/device/listdevices
Mandatory Parameters: none
Optional Parameters: none

Example Request Body

{
"api": "v2/device/listdevices",
"time": 1529662725
}

Example Response Body

{
"errors": [],
"list":[
{ "id":"10","serial":"987612345","imei":"899938455454"},
{ "id":"11","serial":"619723118","imei":"713032378599"}
]
}

Get list of (GPS) positions

Functionality: Returns a list of all stored position log entries for device ids
API URI: v2/device/listposition
Mandatory Parameters: “ids” – Array of Device IDs
Optional Parameters: none

Example Request Body

{
"api": "device/listposition",
"params": {
"ids": [10, 11]
},
"time": 1529662725
}

Example Response Body

{
"errors": [],
"list":[
"10":[
{"time":"1529632725","pos":"47.5572,7.5967"},
{"time":"1529642725","pos":"47.5572,7.5968"},
{"time":"1529652725","pos":"47.5573,7.5969"},
],
"88":[],
]
}

Get asset map

Functionality:
Returns a list of all stored possible assets to be requested using Get any asset data.
You can either use the human readable form or the asset tag to request the data.
API URI: v2/device/getassetmap
Mandatory Parameters: none
Optional Parameters: none

Example Request Body

{
"api": "v2/device/getassetmap",
"time": 1529662725
}

Example Response Body

This response was shortened for readability.

{
"AssetKeys": {
"UDID": "AT001",
"Device Alias": "AT002",
"OS Version WinMobile iOS MacOS": "AT003",
"Model Name": "AT004",
"Serial Number": "AT005",
"Total Storage": "AT006",
"Free Storage": "AT007",
"IMEI": "AT008",

"apptecID": "APPTECID"
},
"errors": []
}

Get any asset data

Functionality: Returns a list of requested asset data for device ids
API URI: v2/device/getassetdata
Mandatory Parameters: “ids” – Array of Device IDs
Optional Parameters:
“assetkeys” – Asset data keys to return. If not specified all available asset data will be
returned. You can get a list of asset keys using Get asset map.

Example Request Body

{
"api": "v2/device/getassetdata",
"time": 1529662725,
"params": {
"ids": [
26
],
"assetkeys": [
"imei"
]
}
}

Example Response Body

{
"result": {
"26": {
"imei": "349157642516427”
}
},
"errors": []
}
This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.