Retrieve a list of all the devices associated with an organization. This API gets the device status and the liveVideoTimeoutSeconds parameter, which is required before displaying the live stream. The data returned from this API will be limited to the type of access associated with the token. If the token is bound to the IMEI level, then this API will only return the data for the IMEI.
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ 'https://api-prod.surfsight.net/v2/organizations/:orgId/devices?groupId=62&name=Mike&imei=12345678&located=string&limit=199&offset=1' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": [
- {
- "name": "Aragorn's car",
- "imei": "357660101000198",
- "groupId": 32,
- "accuracy": 4,
- "vehicleType": "Private",
- "lat": 32.0598671,
- "lon": 34.7827316,
- "alt": 234.22,
- "speed": 22.51,
- "status": "online",
- "lastSeenOnline": "2020-01-01T14:48:00.000Z",
- "firmwareVersion": "3.9.53",
- "deviceModel": "AI-12",
- "cameras": [
- {
- "cameraId": 1,
- "name": "Harry's truck"
}
], - "iccid": "891004234814455936F",
- "liveVideoTimeoutSeconds": 30
}
], - "metadata": {
- "count": 56,
- "limit": 60,
- "offset": 10
}
}