Skip to main content

The Case Object

A Case represents a legal case with all associated data including vehicles, occupants, accident information, and generated reports.

Object Structure

{
"id": "case_abc123def456",
"name": "Smith v. Johnson",
"plaintiff_name": "John Smith",
"defendant_name": "Bob Johnson",
"attorney_name": "Jane Doe, Esq.",
"side": "plaintiff",
"has_edr": false,
"account_id": "acc_xyz789",
"organization_id": "org_abc123",
"status": "active",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T14:45:00Z",

"accident": {
"description": "Rear-end collision at red light",
"date": "2024-01-10",
"time": "14:30",
"location": "123 Main St, Los Angeles, CA"
},

"vehicles": [
{
"id": "veh_abc123",
"role": "plaintiff",
"make": "Toyota",
"model": "Camry",
"year": "2020",
"crash_parameters": { ... }
}
],

"occupants": [
{
"id": "occ_abc123",
"name": "John Smith",
"age": 45,
"position": "driver"
}
],

"report": {
"id": "rpt_xyz789",
"status": "completed",
"pdf_url": "https://..."
}
}

Attributes

Core Fields

AttributeTypeDescription
idstringUnique identifier with case_ prefix
namestringCase name or title (e.g., "Smith v. Johnson")
plaintiff_namestringPlaintiff name (injured party)
defendant_namestringDefendant name (at-fault party)
attorney_namestringAttorney name handling the case
sidestringWhich party the attorney represents: plaintiff or defense
has_edrbooleanWhether any vehicle has EDR data uploaded
account_idstringAccount that owns this case
organization_idstringOrganization associated with the case (optional)
statusstringCase status: active, archived, deleted
created_atstringISO 8601 timestamp of creation
updated_atstringISO 8601 timestamp of last update

Nested Objects

AttributeTypeDescription
accidentobjectAccident information (see below)
vehiclesarrayList of Vehicle objects
occupantsarrayList of Occupant objects
reportobjectLatest Report summary (null if none)

Accident Object

AttributeTypeDescription
descriptionstringDetailed narrative of the accident
datestringDate of accident in YYYY-MM-DD format
timestringTime of accident in HH:MM format
locationstringAddress or description of accident location