GET /device

Returns the basic information for all your devices.

Resource URL

https://connect-portal.blacklinegps.com/1/device

Parameters

None

Example Request

GET https://connect-portal.blacklinegps.com/1/device?access_token=abcd

Example Response

Note:

Possible alerts include: emergency_alert, entering_zone, fall_detected_alert, leaving_zone, logoff, logon, low_battery, missed_check_in, motion, network_timeout, no_motion_occurred, proximity_sensor, silent_alert

date_last_seen, position_date, and date_last_modified represent the timestamp of the event in your timezone (according to the preference in your account). These values are deprecated.
Please use date_last_seen_utc, position_date_utc, and date_last_modified_utc instead. These are the timestamps of the events in UTC.

{
    [
        {
            "id":1234,
            "type":"javelin",
            "name":"Jim Parsons",
            "status":{
                "date_last_seen":"2012-07-03 16:38:28",
                "date_last_seen_utc":"2012-07-03 22:38:28",
                "is_online":false,
                "shutdown_reason":"no_shutdown",
                "location":{
                    "type":"gsm",
                    "timing_advance":4,
                    "uncertainty":555,
                    "position_date":"2012-07-03 16:26:56",
                    "position_date_utc":"2012-07-03 22:26:56",
                    "latitude":"51.0433050",
                    "longitude":"-114.0198290",
                    "altitude":0
                },
                "battery":{
                    "internal_level":80,
                    "is_charging":false
                },
                "flags":{
                    "is_motion_detector_enabled":false,
                    "is_removal_detector_enabled":false,
                    "is_button_enabled":true
                }
            },
            "contact":{

            },
            "alerts":[

            ],
            "owner":{
                "id":1,
                "first_name":"John",
                "last_name":"Smith",
                "email":"john.smith@example.com",
                "language":"en",
                "timezone":"America/Denver"
            }
        },
        {
            "id":3422,
            "type":"flattrack",
            "name": ,
            "status":{
                "date_last_seen":"2012-07-04 12:22:09",
                "date_last_seen_utc":"2012-07-04 18:22:09",
                "is_online":true,
                "shutdown_reason":"no_shutdown",
                "location":{
                    "type":"gps",
                    "heading":0,
                    "speed":0,
                    "satellite_count":6,
                    "position_date":"2012-07-03 16:25:58",
                    "position_date_utc":"2012-07-03 22:25:58",
                    "latitude":"51.0379619",
                    "longitude":"-114.0343229",
                    "altitude":1055
                },
                "battery":{
                    "internal_level":40,
                    "is_charging":true
                },
                "flags":{
                    "is_motion_detector_enabled":false,
                    "is_removal_detector_enabled":true,
                    "is_button_enabled":true
                }
            },
            "contact":{
                "id":9000,
                "full_name":"Jack Doe",
                "first_name":"Jack",
                "last_name":"Doe",
                "phone_number":"403-123-4567"
            },
            "alerts":[
                {
                    "id": 733,
                    "status":"acknowledged",
                    "type":"emergency_alert",
                    "date_last_modified":"2012-07-03 12:08:52",
                    "date_last_modified_utc":"2012-07-03 18:08:52"
                }
            ],
            "owner":{
                "id":1,
                "first_name":"John",
                "last_name":"Smith",
                "email":"john.smith@example.com",
                "language":"en",
                "timezone":"America/Denver"
            }
        }
    ]
}