Accident Detection
The ACCIDENT_DETECTION event is triggered when the system detects a potential or confirmed vehicle collision based on sensor data received from the device. This event provides detailed crash information, including location, timestamp, device ID, confidence level, and vehicle details, enabling real-time accident monitoring and faster incident response.
Event Name: ACCIDENT_DETECTION
Enablement Package: Collision Detection
Trigger Condition
The ACCIDENT_DETECTION webhook event is triggered when a collision is detected by the device.
The following conditions must be met for the event to be published:
- Collision Detection feature must be enabled for the account or device.
- The webhook must be subscribed to the ACCIDENT_DETECTION event.
- When crash data is detected and transmitted from the device, the system publishes the event payload to the configured webhook URL.
Example Payload
{
"inputBit7": 0,
"partialUpdate": false,
"inputBit4": 0,
"voiceCallActive": 0,
"inputBit3": 0,
"inputBit6": 0,
"groupId": "559d6f4c-11bf-11ed-8895-27b5feb885d3",
"inputBit5": 0,
"standStillCrash": false,
"type": "ACCIDENT_DETECTION",
"deviceId": "3f14843e-14c7-11ed-9449-43d7d49f480d",
"initialSpeed": 0,
"crash": true,
"networkService": 0,
"finalSpeed": 0,
"commStateConnected": 0,
"messageType": "ACCIDENT_DETECTION",
"messageIndex": "0",
"dimentionFix": 0,
"lastKnownLon": 77.611127,
"inputBit0": 0,
"vendorTypeId": 1,
"inputBit2": 0,
"id": "1c00d95d-3301-4272-b9f6-72a0224bbf9e",
"inputBit1": 0,
"fixStatuslastKnown": 0,
"fixStatusHistoric": 0,
"commStatusAvaliable": 0,
"locationTime": 1662630309000,
"odometer": 0,
"offset": 0,
"virtualTripEnd": false,
"eventIndex": 0,
"assetNo": "",
"fixStatusCorrected": 0,
"pushPopCrash": false,
"insideHOO": true,
"deviceSerial": "3339076777",
"eventAliasId": "dc5c3f84-a601-11e5-96ee-22000ac501ss",
"groupName": "Default Group",
"spikeOnlyCrash": false,
"bumpCrash": false,
"lastKnownTime": 1662630015000,
"jmsType": "",
"lastKnownLat": 17.691376,
"fixQuality": 0,
"unitStatusBit0": 0,
"vehicleName": "3339076777",
"unitStatusBit2": 0,
"deviceTypeId": 1,
"unitStatusBit1": 0,
"unitStatusBit3": 0,
"storedLocation": false,
"protocolVersionIdChange": true,
"unitStatus": 0,
"fixStatusPredict": 0,
"invalidFix": 0,
"dataService": 0,
"network3G": 0,
"noOfAccums": 0,
"privacyModeEnable": false,
"customerId": 15047,
"fixStatus": 0,
"vehicleId": "3f14843d-14c7-11ed-9449-2f5611afcf3f",
"tripNumber": 0,
"lastKnownFixQuality": 0,
"spare": 0,
"roaming": 0,
"stateId": 0,
"confidence": "max 75",
"userName": "3339076777",
"userId": "8a938091-8268-7d94-0182-6e50994400ba",
"tripState": "ACTIVE",
"messageTypeId": 0,
"location": {
"latitude": 34.73975,
"longitude": -82.379671
},
"batteryPercentage": 0,
"commonState": 0,
"currentState": 0,
"potCrash": true,
"messageEventTypeId": 0
}Reference
Field | Description |
|---|---|
groupId* | Group to which the vehicle belongs.
Example: |
type** | Identifies the webhook event type.
Example: |
deviceId* | Unique ID of the device that reported the event.
Example: |
messageType* | Type of message. |
lastKnownLon* | Last known longitude before crash.
Example: |
vendorTypeId* | Vendor type identifier.
Example: |
id* | Unique identifier for the event.
Example: |
locationTime* | Event timestamp in epoch (milliseconds).
Example: |
deviceSerial* | Device serial number. |
eventAliasId* | Unique event alias reference.
Example: |
groupName* | Name of the group.
Example: |
lastKnownTime* | Last known timestamp.
Example: |
lastKnownLat* | Last known latitude.
Example: |
vehicleName* | Vehicle display name or serial.
Example: |
customerId* | Unique identifier for customer. |
vehicleId* | Unique ID of the vehicle.
Example: |
confidence* | Confidence level of crash detection.
Example: |
userName* | Associated driver username.
Example: |
userId* | Unique identifier for the user.
Example: |
tripState* | Trip state when crash detected.
Example: |
latitude* | Latitude of the crash location.
Example: |
longitude* | Longitude of the crash location.
Example: |
batteryPercentage* | Current battery level of device.
Example: |
Updated 6 days ago
