Skip to main content

Cases API

Cases are the central container for all crash analysis data. Each case represents a single accident with associated vehicles, occupants, accident information, files, and analysis results.

Endpoints

MethodEndpointDescription
POST/api/casesCreate case with vehicles, occupants, accident info
GET/api/cases/:idGet case
GET/api/casesList cases
PUT/api/cases/:idUpdate case with vehicles, occupants, accident info

Case Object

{
"id": "case_abc123def456",
"name": "Smith v. Johnson",
"plaintiff_name": "John Smith",
"has_edr": false,
"account_id": "acc_xyz789",
"organization_id": "org_abc123",
"analysis_type": "accident_injury",
"status": "active",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"analysis_status": {
"accident_reconstruction": {
"status": "completed",
"download_url": "https://..."
},
"biomechanics_analysis": {
"status": "none"
},
"technical_report": {
"status": "processing"
}
}
}

Fields

FieldTypeDescription
idstringUnique case identifier
namestringCase name or title
plaintiff_namestringPlaintiff name (injured party)
has_edrbooleanWhether case has EDR data
account_idstringAccount this case belongs to
organization_idstringOptional organization grouping
analysis_typestringAnalysis type: accident_only, accident_injury, delta_v_only, biomechanics_only
statusstringCase status: active, archived
created_atdatetimeWhen the case was created
updated_atdatetimeWhen the case was last updated
analysis_statusobjectStatus of various analyses

Case Data

Cases can store comprehensive data about the accident:

Accident Information

FieldTypeDescription
accident_descriptionstringNarrative description of the accident
accident_datestringDate of accident (YYYY-MM-DD)
accident_timestringTime of accident (HH:MM)
accident_locationstringLocation where the accident occurred

Vehicles

Each case can have plaintiff and defendant vehicles:

FieldTypeDescription
vehicle_makerstringVehicle manufacturer
vehicle_modelstringVehicle model
vehicle_yearstringVehicle year
vehicle_vinstringVehicle Identification Number
vehicle_typestringVehicle type (sedan, suv, truck, etc.)
image_file_idsstring[]Linked damage photo file IDs

Occupants

Array of occupant data for biomechanics analysis:

FieldTypeDescription
namestringOccupant name
ageintegerAge in years
genderstringmale, female, other
positionstringSeating position
alleged_injuriesstring[]List of injury types
seatbelt_wornbooleanSeatbelt status

Analysis Status

Each case tracks the status of multiple analysis types:

AnalysisDescription
accident_reconstructionCrash analysis with Delta-V, PDOF
biomechanics_analysisInjury biomechanics modeling
technical_reportGenerated technical report

Status values: none, pending, processing, completed, failed

Next Steps