GET
/
device
/
{device_id}
/
event
curl --request GET \
  --url https://api.pathstack.io/device/{device_id}/event \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "event_key": "ignition_status",
      "time": "2023-11-07T05:31:56Z",
      "raw_data": {},
      "value": {
        "harsh_braking": true
      },
      "position": {
        "latitude": 0,
        "longitude": 0
      },
      "id": "<string>",
      "device_id": "<string>"
    }
  ],
  "links": {
    "previous": "<string>",
    "current": "<string>",
    "next": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2024-03-27
Example:

"2024-03-27"

Path Parameters

device_id
string
required

Device ID of the Events to be returned

Query Parameters

event_type
enum<string>

Only include events of this type

Available options:
ignition_status,
odometer,
harsh_braking,
harsh_acceleration,
hard_cornering,
engine_speed,
accident,
total_fuel,
over_speeding,
power_take_off_engaged,
auxiliary_equipment_operation
start_time_utc
string

Start time from when the data will be returned

end_time_utc
string

End time from when the data will be returned

page
integer
default:0

Page number for pagination (zero-indexed)

Required range: x >= 0

Response

200
application/json
Successful Response
data
object[]
required

Successful response payload