GET /device/:id

Returns the basic device information including status and location.

Resource URL

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

Parameters

id required The id of the device.

Example Value: 555

Example Request

GET https://connect-portal.blacklinegps.com/1/device/555?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 16:38:28",
        "is_online":false,
        "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 16:25:58",
            "latitude":"51.0379619",
            "longitude":"-114.0343229",
            "altitude":1055
        },
        "battery":{
            "internal_level":80,
            "is_charging":false
        },
        "flags":{
            "is_motion_detector_enabled":false,
            "is_removal_detector_enabled":false,
            "is_button_enabled":true
        }
    },
    "alerts":[
        {
            "id":69333,
            "status":"unacknowledged",
            "type":"logon",
            "date_last_modified":"2012-07-02 13:41:04",
            "date_last_modified_utc":"2012-07-02 13:41:04"
        },
    ],
    "owner":{
        "id":1,
        "first_name":"John",
        "last_name":"Smith",
        "email":"john.smith@example.com",
        "language":"en",
        "timezone":"America/Denver"
    }
}